#依赖yum-ygccyum-yinstallzlib-devel #获取源代码wget https://www.python.org/FTP/python/3.10.0/计划下载python-3.10.0.TTP tar-xvf python-3.10.0.tgzcdpython-3.10.0./configure-- prefix=/usr/python3ln-s/usr/local/python3/strong力月饼/pip3 /usr/local/strong力月饼/pip3 #安装后的版本号python3 -V #测试hello/usr/lll - coding : utf8--print (' hello world ' ) eof(testuser@localhost(($/usr ) ) ) ) pip3ssl module的
pipisconfiguredwithlocationsthatrequiretls/SSL,howeverthesslmoduleinpythonisnot…
解决步骤:
将OpenSSL升级到1.1.1 #源代码wget https://code load.github.com/OpenSSL/OpenSSL/zip/OpenSSL _1_1- SSL OpenSSL./config-- prefix=/usr/local/opensslmakeinstall #备份旧文件并加载新版本的配置mv/usr/OpenSSL的openssssl libssl.so/usr/lib 64/libssl.so.old ln-s/usr/local/opal local/OpenSSL/include/OpenSSL/usr/include/lib64 ld.so.confldconfig -v #显示版本openssl version重新编辑pythoncdpython-3.10.0./configure-prefix=/usr/local /
最后一次测试如下。