重新安装 conda 4.3.30
此次步骤,需要操作,先执行pip install pyahocorasick,下载最新版的pyahocorasick安装包。此时会报错" fatal error C1083: 无法打开包括文件: “io.h”: No such file or director"
安装Visual Studio2019(vs_community__944320074.1566387330.exe)如下链接。
需要解决的方法为:
添加环境变量
INCLUDE:
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt;
添加环境变量
lib:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\lib\x86;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x86
添加完成后,执行vcvarsall.bat,路径在(C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build)然后win+r 打开cmd 输入cl
C:\Users\konghao\AppData\Local\Temp\pip-install-4hn4gdiz\pyahocorasick\Automaton_pickle.c(422): warning C4018: “<”: 有符号/无符号不匹配
C:\Users\konghao\AppData\Local\Temp\pip-install-4hn4gdiz\pyahocorasick\Automaton_pickle.c(473): warning C4018: “<”: 有符号/无符号不匹配
C:\Users\konghao\AppData\Local\Temp\pip-install-4hn4gdiz\pyahocorasick\Automaton_pickle.c(483): warning C4018: “<”: 有符号/无符号不匹配
C:\Users\konghao\AppData\Local\Temp\pip-install-4hn4gdiz\pyahocorasick\src/custompickle/load/loadbuffer.c(68): warning C4146: 一元负运算符应用于无符号类型,结果仍为无符号类型
C:\Users\konghao\AppData\Local\Temp\pip-install-4hn4gdiz\pyahocorasick\src/custompickle/load/module_automaton_load.c(89): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据”
如图: