Linux服務(wù)器安裝ubuntu?
步驟:
1.首先是從官網(wǎng)查看自己下載的版本
python的官網(wǎng)網(wǎng)址:https://www.python.org/ftp/Python/
如果想下載python3.6,則在終端中輸入:
wgethttps://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
2.然后,解壓壓縮文件
終端輸入命令:
tar-xvfPython-3.6.0.tgz
3.創(chuàng)建安裝文件的路徑
sudomkdir /usr/local/python3
4.在文件夾Python-3.6.0中,編譯文件
./configure–prefix = /usr/local/python3
5.安裝
make
sudomake install
完畢!