Ubuntu 14.04 安裝 Python 3.6

環境介紹python

Ubuntu 14.04.6
Python-3.6.0

**注: 輕易不要改python的默認版本,會有意想不到的bug**ui

python下載地址spa

https://www.python.org/ftp/py...

解壓包3d

tar -xvf Python-3.6.0.tar.xz

編譯code

./configure --with-ssl

報錯信息blog

configure: error: no acceptable C compiler found in $PATH

apt-get -y install build-essentialip

安裝ssl

make && make install

報錯信息get

zipimport.ZipImportError: can't decompress data; zlib not available

apt-get install -y zlib1g-devit

安裝成功

image.png

相關文章
相關標籤/搜索