安装scrapy遇到的错误,请大神指点给个思路

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
shark0119
帖子: 3
注册时间: 2017-04-30 17:05
系统: ubuntu/win10

安装scrapy遇到的错误,请大神指点给个思路

#1

帖子 shark0119 » 2017-04-30 17:13

python:2.7
先前更换过3.5后来又换了回来,在安装scrapy框架时一直报这个错误,之前也有这种情况,百度无果,请各位看一下
小弟不胜感激,一下是部分报错信息。
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up python-decorator (4.0.6-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import 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-decorator (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up python-ptyprocess (0.5-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import 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-ptyprocess (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of python-pexpect:
python-pexpect depends on python-ptyprocess; however:
Package python-ptyprocess is not configured yet.

dpkg: error processing package python-pexpect (--configure):
dependency problems - leaving unconfigured
Setting up python-simplegeneric (0.8.1-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import 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-simplegeneric (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 安装scrapy遇到的错误,请大神指点给个思路

#2

帖子 vickycq » 2017-04-30 20:40

shark0119 写了:python:2.7 先前更换过3.5后来又换了回来
许多系统组件仍然使用 python2,所以不要将默认 python -> python3
shark0119 写了:ImportError: No module named 'ConfigParser'
可能原因 默认 python -> python3
执行以下指令将结果全部复制贴上来

代码: 全选

which python | xargs ls -l
ls -l /usr/bin/ | grep " python"
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
shark0119
帖子: 3
注册时间: 2017-04-30 17:05
系统: ubuntu/win10

Re: 安装scrapy遇到的错误,请大神指点给个思路

#3

帖子 shark0119 » 2017-05-01 15:46

vickycq 写了:
shark0119 写了:python:2.7 先前更换过3.5后来又换了回来
许多系统组件仍然使用 python2,所以不要将默认 python -> python3
shark0119 写了:ImportError: No module named 'ConfigParser'
可能原因 默认 python -> python3
执行以下指令将结果全部复制贴上来

代码: 全选

which python | xargs ls -l
ls -l /usr/bin/ | grep " python"
用的是win10双系统,昨天引导坏了,win10的修复后,Ubuntu又进不去了,弄到现在,看来只能从装了,不过还是要多谢您了
shark0119
帖子: 3
注册时间: 2017-04-30 17:05
系统: ubuntu/win10

Re: 安装scrapy遇到的错误,请大神指点给个思路

#4

帖子 shark0119 » 2017-05-02 10:50

vickycq 写了:
shark0119 写了:python:2.7 先前更换过3.5后来又换了回来
许多系统组件仍然使用 python2,所以不要将默认 python -> python3
shark0119 写了:ImportError: No module named 'ConfigParser'
可能原因 默认 python -> python3
执行以下指令将结果全部复制贴上来

代码: 全选

which python | xargs ls -l
ls -l /usr/bin/ | grep " python"
从装系统后就好了,是python版本的问题,真是多谢了
回复