安装 chatterBot 时出错

Error while installing chatterBot

每当我尝试使用命令 pip install ChatterBot 安装 ChatterBot 时,都会出现此错误:

Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003687898>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/chatterbot/
  Could not find a version that satisfies the requirement chatterbot (from versi
ons: )
No matching distribution found for chatterbot

我从 Python 3.6 降级到 2.7,但收到同样的错误。

我正在使用windows8、Anaconda 2.7

这里的问题不是 ChatterBot,而是 pip 命令。

尝试从源代码安装 chatterbot: https://github.com/gunthercox/ChatterBot/archive/master.zip

然后解压文件。

打开cmd后输入:cd chatter_bot_master_directory

最后只需输入:python(3) setup.py install

如果它不起作用,请使用更多权限重试:以管理员模式打开 cmd。

这是区分大小写的问题,这样试试

pip install --upgrade chatterbot

您收到此错误是因为您尚未安装所需的软件包。我认为您需要先下载并安装它们,然后再尝试直接安装 chatterBot。 您可以使用 'pip' 安装,也可以下载我们 'python'.

pip install path_where_you_have_downloaded_packages

python path_where_you_have_downloaded_packages\setup.py install

试试吧。

PIP安装错误! ChatterBot 无法使用 PIP cmd 安装。 对于无法使用 PIP 安装的每个模块,请按照以下步骤操作:

1) 从 GITHUB 或 PyPi 下载模块。

2) 解压缩并将其放置在您要安装模块的任何目录中。

3) 在 CMD 中:cd ,其中是该模块 'setup.py' 所在的位置。

4) 现在,CMD:python setup.py 安装

模块现已安装使用。

试试这个,它会安装:

pip install chatterbot==1.0.4

您需要为 windows 安装 pip,即 pipwin 所以试试--

pip install pipwin

然后--

pipwin install pyaudio 

稍等片刻,因为 pipwin 需要时间来执行

然后使用

安装pocketsphinx
pipwin install pocketsphinx

然后尝试

pip install chatterbot==1.0.5

尝试安装 python 3.7.4 在我的情况下它有效

请尝试

pip install git+git://github.com/gunthercox/ChatterBot.git@master

pip install chatterbot==1.0.2