当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 安装scrapy遇到的错误,请大神指点给个思路
帖子发表于 : 2017-04-30 17:13 

注册: 2017-04-30 17:05
帖子: 3
系统: ubuntu/win10
送出感谢: 0 次
接收感谢: 0 次
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


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 安装scrapy遇到的错误,请大神指点给个思路
帖子发表于 : 2017-04-30 20:40 
头像

注册: 2011-03-20 13:12
帖子: 4534
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 1001
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 用户


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 安装scrapy遇到的错误,请大神指点给个思路
帖子发表于 : 2017-05-01 15:46 

注册: 2017-04-30 17:05
帖子: 3
系统: ubuntu/win10
送出感谢: 0 次
接收感谢: 0 次
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又进不去了,弄到现在,看来只能从装了,不过还是要多谢您了


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 安装scrapy遇到的错误,请大神指点给个思路
帖子发表于 : 2017-05-02 10:50 

注册: 2017-04-30 17:05
帖子: 3
系统: ubuntu/win10
送出感谢: 0 次
接收感谢: 0 次
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版本的问题,真是多谢了


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Bing [Bot], funicorn 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
cron
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译