我已经安装了最新的可再发行的微软C++和升级我的pip,但没有解决...任何人请给予解决方案
`pip install chatterbot`
preshed/maps.cpp(181): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
**error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]**
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Encountered error while trying to install package.
preshed
`
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─\> See above for output.`
1条答案
按热度按时间ocebsuys1#
***chatterbot***包似乎不再支持新版Python,您可以下载并安装 Python38 或 python37 或更早版本来使用***chatterbot***包。
https://www.python.org/downloads/windows/
经过测试,我成功地安装了带有python 3.8.0和python 3.7.9的***chatterbot***包。