CentOS自己编译安装Python3的命令

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel

 

参照:https://blog.51cto.com/13544424/2149473

解决缺少SSL问题(安装1.1.1版本),然后往下走

 

./configure prefix=/usr/local/python3 –with-openssl=/usr/local/openssl

make && make install

/usr/local/python3/bin/python3 -m pip install –upgrade pip

/usr/local/python3/bin/python3 -m pip install redis

相关推荐