【发布时间】:2019-01-30 11:29:37
【问题描述】:
我正在尝试安装 spacy。我正在使用 python 2,我看到了一个帖子 Failed building wheel for spacy,因为我遇到了同样的问题。
我跑了pip install --no-cache-dir spacy,但我仍然得到了
error: command 'C:\\Users\\amuly\\mingw\\bin\\gcc.exe' failed with exit status 1
----------------------------------------
thinc 6.10.3 has requirement dill<0.3.0,>=0.2.7, but you'll have dill 0.2.5 which is incompatible.
Command "c:\users\amuly\anaconda2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\amuly\\appdata\\local\\temp\\pip-install-aljpyz\\murmurhash\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\amuly\appdata\local\temp\pip-record-ijwq0r\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\amuly\appdata\local\temp\pip-install-aljpyz\murmurhash\
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
很抱歉,我是新手,找不到解决方案。
谢谢。
【问题讨论】:
-
嗨,艾米,我能够使用相同的命令安装此软件包。您可以尝试检查 pip 是否设置正确并且可以安装任何其他软件包吗?
-
嗨,是的,我之前一直在安装软件包。但我不确定是否需要升级它。我还没有升级它。你觉得是这个原因吗?
-
似乎和 windows gcc 错误我做了一个快速搜索,发现下面的链接可以提供帮助:github.com/develersrl/gccwinbinaries。此外,我建议重新安装 python dermal 以获得简单的解决方案。
-
@Helly 谢谢,但我读到 Windows GCC 很难安装和管理。还有其他解决方案吗?我只是想进行依赖解析工作。如果还有其他解决方法,请告诉我。