无法安装聊天机器人库

Can´t install chatterbot library

我尝试使用 CMD 命令 pip install chatterbot 安装。

在路径 C./ 中,它似乎安装了 python 2.7 在名为 python27 的目录中,但在 c:\users\arcanet\appdata\local\programs\python\python37-32\ 中还有另一个 python 目录。当我尝试安装时抛出以下异常:

Command "c:\users\arcanet\appdata\local\programs\python\python37-32\python.exe c:\users\arcanet\appdata\local\programs\python\python37-32\lib\site-packages\pip install --ignore-installed --no-user --prefix C:\Users\ARCANET\AppData\Local\Temp\pip-build-env-_w62yget\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel>0.32.0.<0.33.0 Cython cymem>=2.0.2,<2.1.0 preshed>=2.0.1,<2.1.0 murmurhash>=0.28.0,<1.1.0 thinc==7.0.0.dev6" failed with error code 1 in Noneimport telegram

我建议进入您的高级系统设置,然后单击右下角的环境变量。在“系统变量”窗格下方向下滚动,直到您看到 Path,继续并单击“编辑”。您可能已经添加了 Python 路径,如果已添加,请将其删除并单击新建。打开文件资源管理器到您的 python 2.7 脚本目录并从顶部复制 url 并将其粘贴到新文件路径中。

希望对您有所帮助!

  • 特立独行