scrapy startproject tutorial:执行此命令时出错

时间:2014-09-22 04:11:12

标签: python scrapy pip

C:\Windows\system32>scrapy startproject tutorial
Traceback (most recent call last):
File "C:\Python34\Scripts\scrapy-script.py", line 9, in <module>
load_entry_point('Scrapy==0.24.4', 'console_scripts', 'scrapy')()
File "C:\Python34\lib\site-packages\pkg_resources.py", line 353, in load_entry
_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python34\lib\site-packages\pkg_resources.py", line 2302, in load_entr
y_point
return ep.load()
File "C:\Python34\lib\site-packages\pkg_resources.py", line 2029, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "C:\Python34\lib\site-packages\scrapy\__init__.py", line 28, in <module>
import _monkeypatches
ImportError: No module named '_monkeypatches'

我是scrapy&amp; amp;的新手蟒蛇。我正在尝试创建一个scrapy项目,但是无法做到。我已经安装了pip,setuptools,lxml和scrapy。

C:\Windows\system32>pip list
cffi (0.8.6)
cryptography (0.5.4)
cssselect (0.9.1)
lxml (3.4.0)
pip (1.5.6)
pycparser (2.10)
pyOpenSSL (0.14)
queuelib (1.2.2)
Scrapy (0.24.4)
setuptools (2.1)
six (1.8.0)
Twisted (14.0.2)
w3lib (1.10.0)
zope.interface (4.1.1)

请帮忙!我一直在寻找,但仍无法找到解决方案。

1 个答案:

答案 0 :(得分:0)

目前仅在Python 2.7下支持Scrapy。您需要安装2.7才能实现此目的。