gpt4 book ai didi

linux - 安装/升级到 python 3.4.3 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 03:44:10 25 4
gpt4 key购买 nike

我试图从 python 3.2 安装/升级到 3.4.3,但是很多事情都出了问题。现在,即使我

apt-get install python3

我收到错误。这是终端输出

Setting up python-requests (0.8.2-1) ...
/var/lib/dpkg/info/python-requests.postinst: 6: /var/lib/dpkg/info/python-requests.postinst: pycompile: not found
dpkg: error processing python-requests (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up python-gevent (0.13.6-1ubuntu1) ...
/var/lib/dpkg/info/python-gevent.postinst: 6: /var/lib/dpkg/info/python-gevent.postinst: pycompile: not found
dpkg: error processing python-gevent (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up python-qrencode (1.01-2build1) ...
/var/lib/dpkg/info/python-qrencode.postinst: 5: /var/lib/dpkg/info/python-qrencode.postinst: update-python-modules: not found
dpkg: error processing python-qrencode (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
python-requests
python-gevent
python-qrencode
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮我解决这个问题。

最佳答案

我不小心删除了/usr/bin/中的python3.6。当我重新安装它时,我收到类似的错误消息。

然后我尝试了以下命令并安装了 python3.6:

sudo apt-get remove --purge python3.6
sudo apt-get install -f --reinstall python3.6-minimal

我也尝试了sudo apt-get install -f --reinstall python-minimal,但没有成功。

希望我的经验对有类似情况的人有帮助。

关于linux - 安装/升级到 python 3.4.3 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28792794/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com