首页 > 编程知识 正文

centos8自带python,linux 安装python3

时间:2023-05-04 15:05:11 阅读:127238 作者:3122

#依赖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 /

最后一次测试如下。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。