切换到用户目录
cd ~安装 python2.7,须加入zlib
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz tar zvf Python-2.7.13.tar.xz cd Python-2.7.13 ./configure --with-zlib make make install
安装 pip
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz wget https://bootstrap.pypa.io/get-pip.py python get-pip.py
安装 requests
pip install requests
安装 Protocol Buffers
Protocol Buffers v3.2.0有 BUG,安装 3.1.0
wget https://github.com/google/protobuf/archive/v3.1.0.tar.gz tar xzvf v3.1.0.tar.gz cd protobuf-3.1.0 make make check make install
安装 Protocol Buffers 的 python 模块
cd python python setup.py install原文链接:https://www.f2er.com/centos/378347.html