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
原文:https://www.cnblogs.com/stono/p/9097904.html