形腿望舞 发表于 2024-9-11 23:33:39

linux python升级并设置全局使用

1.安装依赖包
sudo yum install -y zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel \
openssl-devel xz xz-devel libffi-devel gcc readline readline-devel readline-static \
openssl openssl-devel openssl-static sqlite-devel bzip2-devel bzip2-libs
2.安装git
yum install git -y
3.安装pyenv
curl -L https://github.com/pyenv/pyenv-i ... bin/pyenv-installer | bash
4..添加环境变量到.bashrc
cat >> ~/.bashrc
页: [1]
查看完整版本: linux python升级并设置全局使用