码迷,mamicode.com
首页 > 编程语言 > 详细

Python从2.7.5升级到3.6.5

时间:2018-05-27 23:38:44      阅读:539      评论:0      收藏:0      [点我收藏+]

标签:wget   article   yum   files   exec   pip安装   https   mysql   bin   

Python从2.7.5升级到3.6.5
学习了:https://blog.csdn.net/liang19890820/article/details/51079633

wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar -zxvf Python-3.6.5.tgz
cd Python-3.6.5
./configure
make
sudo make install
sudo mv /usr/bin/python /usr/bin/python.bak
sudo ln -s /usr/local/bin/python3 /usr/bin/python
sudo vi /usr/bin/yum
sudo vi /usr/libexec/urlgrabber-ext-down

进行pip安装:

wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz
tar -zxvf pip-10.0.1.tar.gz
sudo python setup.py install
pip install requests
pip install pymysql
pip list

 

Python从2.7.5升级到3.6.5

标签:wget   article   yum   files   exec   pip安装   https   mysql   bin   

原文地址:https://www.cnblogs.com/stono/p/9097904.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!