当前位置:   article > 正文

Centos 安装python3.12.3

Centos 安装python3.12.3

下载python3.12.3

https://www.python.org/downloads/release/python-3123/

安装

yum -y install gcc zlib zlib-devel libffi libffi-devel
yum install readline-devel
yum install bzip2-devel
yum install epel-release
yum install openssl-devel
export CFLAGS=$(pkg-config --cflags openssl)
export LDFLAGS=$(pkg-config --libs openssl)
tar -xzvf Python-3.12.3.tgz 
cd Python-3.12.3
./configure --prefix=/usr/local/lib/python3.12.3 --with-openssl=/usr/bin/openssl 
make -j`nproc` && make install
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

check

./python3
import ssl
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/545057
推荐阅读
相关标签
  

闽ICP备14008679号