Linux下安裝python

1.去官網下載要安裝的對應版本的python的源代碼python

下載地址:https://www.python.org/downloads/source/code

你能夠選擇你要下載的版本,用wget指令來下載相應的源代碼get

2.解壓下載的代碼包編譯

tar -xvf Python-2.7.13.tar.xz

3.查找configure文件配置

find . -name configure

4.進行配置下載

./configure

5.編譯im

make
make install

6.檢查img

python

如出現如下則安裝完成文件

相關文章
相關標籤/搜索