1

我正在尝试在win7上安装scrapy。一个依赖项是 python-crfsuite。当我运行时:

pip install python-crfsuite==0.8.4

它反复失败最终给出:

copying pycrfsuite\__init__.py -> build\lib.win32-2.7\pycrfsuite
running build_ext
building 'pycrfsuite._pycrfsuite' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

此软件包是否有任何用于 win32 的预编译二进制文件?

4

2 回答 2

0

添加此答案以帮助多年后仍在尝试安装 python-crfsuite 的人们。

当我要求 pip 在 Python 3.8、Windows 10 上安装 python-crfsuite 时,我收到一条关于需要安装 Microsoft Visual C++ 14.0 的错误消息。它一直说需要 Microsoft Visual C++ 来创建轮子。

最终对我有用的是在 Python 3.7.4 上安装 python-crfsuite。

我怀疑它起作用了,因为 PyPI 上的 python-crfsuite 轮不适用于 Python 3.8,但它可用于 Python 3.7。您可以检查包的 PyPI 页面以查看可用的轮子 https://pypi.org/project/python-crfsuite/#files

另外,如果

pip install python-crfsuite

不适合您,请尝试下载轮子并让 pip 安装它。

于 2020-01-03T16:42:43.290 回答
0

如果您已经安装了带有常用工具的 Microsoft Visual Studio 版本。您需要做的就是运行此命令。

set VS90COMNTOOLS=%VS140COMNTOOLS%

假设您当前安装了 Visual Studio 14。

于 2016-11-13T20:59:32.867 回答