python2
python2 安装
apt-get install python2
pip2 安装
# 安装setuptools
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-18.5.tar.gz
tar zxvf setuptools-18.5.tar.gz
cd setuptools-18.5
python setup.py build
python setup.py install
# 安装pip
wget https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz
tar zxvf pip-7.1.2.tar.gz
cd pip-7.1.2
python setup.py install
查看安装结果
python2 -V
pip2 -V
python3
python3 安装
apt-get install python3
pip3 安装
apt-get install python3-pip
查看安装结果
python3 -V
pip3 -V