【发布时间】:2015-03-01 11:02:28
【问题描述】:
我试图从 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)
请帮我解决这个问题。
【问题讨论】:
-
尝试
sudo apt-get remove --purge python3 && sudo apt-get update && sudo apt-get install python3以(可能)回到“干净”状态。检查python3 --version,你可能很幸运得到了python 3.4!
标签: linux ubuntu python-3.x terminal upgrade