Scrapy deltafetch 安装

Scrapy deltafetch installation

同时使用

安装 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 缓存目录再次尝试安装。问题依然存在。

我做错了什么?

请帮忙。

@has 回答:

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

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