将默认python版本从2.x更改为3.x后无法安装pip3 packge

时间:2017-06-10 07:01:55

标签: python pip deb

Traceback (most recent call last):
  File "/usr/bin/pycompile",line 35, in <module>
    from debpython.version i``mport SUPPORTED,debsorted,vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-pil:amd64 (--configure):
 subprocess installed post-installaion script returned error exit status 1
Setting up libpython3-dev:``amd64 (3.5.3-1) ...
Setting up python3-dev (3.5.3-1) ...
dpkg: dependency problems prevent configuration of python-imaging:
 python-imaging depends on python-pil; however:
  Package python-pil:amd64 is not configured yet.

dpkg: error processing package python-imaging (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    dpkg: dependency problems prevent configuration of kodi-data:
 kodi-data depends on python-imaging; however:
  Package python-imaging is not configured yet.

dpkg: error processing package kodi-data (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-pil:amd64
 python-imaging
 kodi-data
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 个答案:

答案 0 :(得分:0)

ConfigParser已在configparser中重命名为Python3,以符合PEP8标准。

可以找到答案here