Python Scrapy startproject错误异常代码修改求助,scrapystartproject,使用scrapy sta
Python Scrapy startproject错误异常代码修改求助,scrapystartproject,使用scrapy sta
使用scrapy startproject tutorial时,执行错误:
scrapy startproject tutorialTraceback (most recent call last): File "/usr/local/bin/scrapy", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info herepkg_resources.DistributionNotFound: queue lib
去/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py中查看它的代码, 在565行左右:
while requirements: req = requirements.pop(0) # process dependencies breadth-first if req in processed: # Ignore cyclic or redundant dependencies continue dist = best.get(req.key) if dist is None: # Find the best distribution and add it to the map dist = self.by_key.get(req.key) if dist is None: if env is None: env = Environment(self.entries) dist = best[req.key] = env.best_match(req, self, installer) if dist is None: raise DistributionNotFound(req) # XXX put more info here to_activate.append(dist) if dist not in req: # Oops, the "best" so far conflicts with a dependency raise VersionConflict(dist,req) # XXX put more info here requirements.extend(dist.requires(req.extras)[::-1]) processed[req] = True
不太清楚具体环境哪里错误了,还请各位大神或者有过类似经验的
建议是用virtualenv环境,正常的环境安装Scrapy有时候会出现未知异常。
编橙之家文章,
相关内容
- Python access数据库pywintypes.com_error是什么问题,,使用Py
- 如何优化python mongodb批量修改任务,pythonmongodb,有一千万
- Function Annotation在python 2.7中使用有什么注意事项?,ann
- python is引用对象返回结果为何不同,pythonis引用对象,
- 获取字典中的url报错No such file or directory什么问题,ur
- object.__setattr__和直接设置Python属性有什么不一样?,
- python中flask celery配置结构出错求解,flaskcelery,脚手架是
- Python beautifulsoup方法得到input中value的方式是什么?,,H
- python代码文件目录打包该怎么写,python怎么写,小白提问
- 请问网上虚拟主机安装依赖包具体操作方法是?,虚拟主
评论关闭