Scrapy deltafetch安装

时间:2017-10-16 10:13:59

标签: python scrapy berkeley-db

使用

安装scrapy-deltafetch
pip install scrapy-deltafetch

我碰到了一个凹凸:

PS C:\python\Scripts> pip install bsddb3 --no-cache-dir
Collecting bsddb3
  Downloading bsddb3-6.2.5.tar.gz (237kB) 100%
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File "C:\Users\XYZ\AppData\Local\Temp\pip-build-ui_ns07z\bsddb3\setup.py", line 42, in <module>
    import setup3
     File "C:\Users\XYZ\AppData\Local\Temp\pip-build-ui_ns07z\bsddb3\setup3.py", line 382, in <module>
    with open(os.path.join(incdir, 'db.h'), 'r') as f :
    FileNotFoundError: [Errno 2] No such file or directory: 'db/include\\db.h'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\XYZ\AppData\Local\Temp\pip-build-ui_ns07z\bsddb3\

我已经为windows安装了berkley db x86,并且通过忽略pip缓存目录再次尝试安装。问题依然存在。

我做错了什么?

请帮忙。

1 个答案:

答案 0 :(得分:0)

<回答@has:

另一种方法是下载包文件,.whl将其粘贴到C:\python\Scripts文件夹中。然后运行pip install {package_filename}.whl

我在这里找到了需要它们的人的Windows二进制文件: http://www.lfd.uci.edu/~gohlke/pythonlibs