ubuntu安装python包_ubuntu16.04安装python3的包报错

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

Reading package lists... Done

Building dependency tree

Reading state information... Done

python-scipy is already the newest version (0.17.0-1).

0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.

2 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Do you want to continue? [Y/n] Y

Setting up python-decorator (4.0.6-1) ...

Traceback (most recent call last):

File "/usr/bin/pycompile", line 35, in

from debpython.version import SUPPORTED, debsorted, vrepr,

File "/usr/share/python/debpython/version.py", line 24, in

from ConfigParser import SafeConfigParser

ImportError: No module named ConfigParser

dpkg: error processing package python-decorator (--configure):

subprocess installed post-installation script returned error exit status 1

dpkg: dependency problems prevent configuration of python-scipy:

python-scipy depends on python-decorator; however:

Package python-decorator is not configured yet.

dpkg: error processing package python-scipy (--configure):

dependency problems - leaving unconfigured

No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:

python-decorator

python-scipy

N: Ignoring file google-chrome.list.2 in directory /etc/apt/sources.list.d/ as it has an invalid filename extension

N: Ignoring file google-chrome.list.1 in directory /etc/apt/sources.list.d/ as it has an invalid filename extension

E: Sub-process /usr/bin/dpkg returned an error code (1)

求解 在网上看了下似乎是python的配置还是2的 可是要用3去写,所以有什么解决的方法吗?非常感谢了!!

经验分享 程序员 微信小程序 职场和发展