ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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 ~~~