-
先安装所需要的依赖
sudo yum -y groupinstall "Development tools" sudo yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel sudo yum install -y libffi-devel zlib1g-dev sudo yum install zlib* -y sudo yum gcc
-
下载python的安装包
wget https://www.python.org/ftp/python/3.9.8/Python-3.9.8.tar.xz
不想下3.9.8的版本的话可以去python下载地址这里面找对应版本的安装包
-
解压
tar -xvJf Python-3.9.8.tar.xz
-
安装
cd Python-3.9.8 sudo ./configure --prefix=/usr/local/python3 sudo make sudo make install ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3 ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
-
测试是否安装成功
python3 -V pip3 -V
相关文章
- 03-14持续集成环境(6)-Tomcat安装和配置(编写中)
- 03-14conda常用命令,如何在conda环境中安装gym库?
- 03-14Windows环境下安装graphviz和pygraphviz
- 03-14手动安装python3和xgboost
- 03-14【初学必备】Win10环境下Anaconda安装
- 03-14win 环境 anaconda 安装xgboost
- 03-14mac 安装laravel Valet环境
- 03-14Mac 10.12下安装python3环境
- 03-14deepin命令行安装_在基于Debian开发的Deepin上快速搭建.net core开发环境
- 03-14在命令窗口切换anaconda环境安装tensorflow1.x版本