linux python升级并设置全局使用

[复制链接] |主动推送
查看39 | 回复0 | 2024-9-11 00:01:23 | 显示全部楼层 |阅读模式
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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则