ubuntu安装python3.5的问题

报错:
$ sudo apt-get install python3.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.5 is already the newest version (3.5.2-2ubuntu0~16.04.4).
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 38, in <module>
from debpython.namespace import add_namespace_files
File "/usr/share/python/debpython/namespace.py", line 120
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
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)

我之前是报ConfigParse.py的错,我把python3.5的configparse.py改成这个名字后就开始报这个错…要怎么办啊……谢谢谢谢!!!

第1个回答  2018-02-09
python3.5你已经安装了只是部分包出现了问题,先卸了python3.5及其包再重装试试本回答被网友采纳
相似回答