Pycharm 鏈接Linux 遠程開發python
下載Python-3.6.4.tgz 解壓 tar -xzvf Python-3.6.4.tgz 進入目錄: cd Python-3.6.4/ 添加配置: ./configure --prefix=/usr/python 這裏配置本身的安裝目錄,接下來編譯源碼: make 執行安裝: sudo make install 整個過程大約5-10分鐘,安裝成功以後,安裝目錄就在/usr/python which python $ sudo mv /usr/bin/python /usr/bin/python.bak $ sudo ln -s /usr/python/bin/python3 /usr/bin/python pyvip@Vip:~/Python-3.6.4$ python Python 3.6.4 (default, Mar 20 2018, 14:02:04) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 這樣就創建好了,之後直接執行python命令,就至關於調用python3,實際上python3也是個軟連接,連接到python3.6 # 安裝經常使用軟件包 sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pillow sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple lxml sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple beautifulsoup4 sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pymysql sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple HTMLParser sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pymongo