版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012848709/article/details/84930673
楔子
CentOS6.9升级python3.7
安装
1 依赖环境
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
2 注意
centos下安装python3.7.0以上版本时报错ModuleNotFoundError: No module named '_ctypes’的解决办法
yum install libffi-devel -y
3 下载安装
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
## 解压进入目录
./configure
make
make install
如上图所示,pip自动安装
pip安装mycli
提示
require TLS/SSL
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
没事动yum 和pip