1 安裝,依次執行下面的命令
wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar -xvzf Python-3.6.4.tgz
cd Python-3.6.4
./configure --with-ssl
make
sudo make install
2 安裝python運行環境,依次執行以下命令
sudo apt-get install python
sudo apt-get install python-dev(編譯外部模塊文件使用的)
sudo apt-get install python-pip
sudo apt-get install libxml*
sudo apt-get install net-tools
sudo apt-get install lsof
3 輸入python3來確定你是否安裝成功
https://blog.csdn.net/qq_21429153/article/details/79188679
https://blog.csdn.net/xinyan233/article/details/80369061
二 : 更改軟連接
root@iZbp1jfv6wfxfpuh4t2rc8Z:/usr/bin# sudo rm python
root@iZbp1jfv6wfxfpuh4t2rc8Z:/usr/bin# sudo ln -s /root/Python-3.6.7/Python /usr/bin/python
輸入Python,默認的被改成3.6.7版本了
之后在PyCharm里可以設置遠程Python環境 :https://www.cnblogs.com/zhishifenzi/p/9565404.html
這個就當學習一下吧,實際工作上會用到這linux上部署python環境的