1、下载Python 3.6.1
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
2、./configure
./configure --prefix=/usr/local/python3.6.1
3、make&makeinstall
4、创建虚拟环境
virtualenv -p /usr/bin/python3 py3env
5、激活虚拟环境
source ./bin/activate
6、FAQ
01、zipimport.zipimporterror can‘t decompress data zlib not available linux
安装zlib-devel
yum install zlib-devel
时间: 2024-10-14 09:23:10