参考自:https://jingyan.baidu.com/article/11c17a2cd0cccdf447e39d46.html
1.升级python后pip不能用了
解决步骤如下:
2.python3.6.0 提示 ModuleNotFoundError: No module named ‘_ssl‘ 模块问题
>检测 系统 安装 OpenSSL
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc gcc-c++ openssl-devel
>然后 重新编译 python
编辑 取消注释 以下几行:
~ python/Modules/Setup.dist
大约在 209 行
SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
>重新编译
./configure --prefix=/usr/local/python
make
make install
原文:https://www.cnblogs.com/songyanxin/p/11067527.html