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

2024-06-16 12:50:48 发布

您现在位置:Python中文网/ 问答频道 /正文

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)

Tags: nofrompackagedatapilusrerrordependency