python版本3.7.2,也装了MicrosoftVCTools(2015),但是就是一直报错,去pyahocorasick在github里的原网址下面也有人是这个问题,但是到最后都没看到解决方案。
具体:
Collecting pyahocorasick
Using cached https://files.pythonhosted.org/packages/f4/9f/f0d8e8850e12829eea2e778f1c90e3c53a9a799b7f412082a5d21cd19ae1/pyahocorasick-1.4.0.tar.gz
Installing collected packages: pyahocorasick
Running setup.py install for pyahocorasick ... error
Complete output from command c:\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JOHNAR~1\\AppData\\Local\\Temp\\pip-install-6_oslzvs\\pyahocorasick\\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\JOHNAR~1\AppData\Local\Temp\pip-record-qgyiwrnq\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'ahocorasick' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DAHOCORASICK_UNICODE= -Ic:\python\include -Ic:\python\include /Tcpyahocorasick.c /Fobuild\temp.win-amd64-3.7\Release\pyahocorasick.obj
error: command 'cl.exe' failed: No such file or directory
----------------------------------------
Command "c:\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JOHNAR~1\\AppData\\Local\\Temp\\pip-install-6_oslzvs\\pyahocorasick\\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\JOHNAR~1\AppData\Local\Temp\pip-record-qgyiwrnq\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\JOHNAR~1\AppData\Local\Temp\pip-install-6_oslzvs\pyahocorasick\