当前位置:   article > 正文

ubuntu装python2_Ubuntu安装python2虚拟环境

ubuntu在线安装python-2.7.15

wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz

tar -xzvf Python-2.7.15.tgz

cd Python-2.7.15

# # ./configure --prefix=/usr/local/python-2.7.15 #指定安装路径

./configure   #不指定安装路径

make

sudo make install

#下载pip

wget https://pypi.org/project/pip/9.0.1

tar -zxvf pip-9.0.1.tar.gz

cd pip-9.0.1

python2.7 setup.py install

#下载setuptools

sudo wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz

tar -xvf setuptools-0.6c11.tar.gz

cd setuptools-0.6c11

sudo python setup.py build

sudo python setup.py install

#重新安装pip

cd  pip-9.0.1

sudo python2 setup.py install

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/71204
推荐阅读
相关标签
  

闽ICP备14008679号