这是我尝试安装聊天机器人时的错误


"C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.33.31629binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:UsersAdminAppDataLocalProgramsPythonPython311include -IC:UsersAdminAppDataLocalProgramsPythonPython311include -IC:UsersAdminAppDataLocalProgramsPythonPython311Include "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.33.31629include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.19041.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.19041.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.19041.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.19041.0\cppwinrt" /EHsc /Tppreshed/maps.cpp /Fobuildtemp.win-amd64-cpython-311Releasepreshed/maps.obj /Ox /EHsc
maps.cpp
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\2022\BuildTools\VC\Tools\MSVC\14.33.31629\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
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

我为此尝试了许多解决方案,但任何方法都不起作用我试过更新pip,改变环境变量和其他可能的解决方案,我在互联网上找到的,但似乎没有工作

它在python 3.11中为我工作:

pip install chatterbot --pre

最新更新