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

相关文章
相关标签/搜索