企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
1、安装依赖 ``` yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel ``` 2、下载源码包 ~~~ wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz ~~~ 3、编译 ~~~ tar -zxvf Python-3.8.1.tgz cd Python-3.8.1 ./configure prefix=/usr/local/python3 make && make install ~~~ 4、添加软链接 ~~~ #添加python3的软链接 ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3 #添加 pip3 的软链接 ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3 ~~~ 5、可以软链接到python ~~~ vi /usr/bin/yum 把 #! /usr/bin/python 修改为 #! /usr/bin/python2 vi /usr/libexec/urlgrabber-ext-down 把 #! /usr/bin/python 修改为 #! /usr/bin/python2 ~~~