CentOS 7.X 升级 Python 3.9.5

yum -y install gcc python36-devel bzip2-devel sqlite-devel openssl-devel readline-devel xz-devel xz-devel tk-devel gdbm-devel libffi-devel

2. 下载和安装python

出现错误必须:

ln -fs /usr/local/python3.9/bin/python3.9 /usr/bin/python
ln -fs /usr/local/python3.9/bin/python3.9 /usr/bin/python3
ln -fs /usr/local/python3.9/bin/pip3.9 /usr/bin/pip
ln -fs /usr/local/python3.9/bin/pip3.9 /usr/bin/pip3

# 顺手解决 Can't locate Tcl/Tk libs and/or headers
sudo yum install tcl-devel tk-devel
# 解决_ssl问题
sudo yum install openssl-devel网上的加什么网关方法都是不行的记住了,忙了半个小时

Original: https://www.cnblogs.com/dgwblog/p/15732097.html
Author: —dgw博客
Title: CentOS 7.X 升级 Python 3.9.5

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/15852/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

最近整理资源【免费获取】:   👉 程序员最新必读书单  | 👏 互联网各方向面试题下载 | ✌️计算机核心资源汇总