1、卸载旧的python3
rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps whereis python3|xargs rm -frv 2、安装python3 http://npm.taobao.org/mirrors/python/3.8.0/Python-3.8.0.tgz ./configure --prefix=/usr/local/python3 --enable-shared make make install 建立软连接: ln -s /usr/local/python3/bin/python3 /usr/bin/python3 若是不建立软连接,安装后输入python3命令会找不到已安装的python3 --enable-shared 参数必须有,否则安装pyinstaller依赖包会报错;若是已安装python3,但是pyinstaller安装失败,可以按如下步骤解决:![](/i/l/?n=23&i=blog/2658269/202303/2658269-20230324174604589-47206072.png)
标签:bin,--,离线,usr,linux,安装,python3 From: https://www.cnblogs.com/yan-test/p/17252920.html