安装chatterB时出错

2024-04-23 19:58:21 发布

您现在位置:Python中文网/ 问答频道 /正文

每当我尝试使用命令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

我从Python3.6降级到2.7,但收到了同样的错误。

我用的是windows 8,Anaconda 2.7


Tags: installpip命令nonereadconnect错误connection
3条回答

您收到此错误是因为您没有安装所需的软件包。我想你需要先下载并安装它们,然后再尝试直接安装chatterBot。 您可以使用“pip”安装,也可以下载并使用“python”。

pip install path_where_you_have_downloaded_packages

或者

python path_where_you_have_downloaded_packages\setup.py install

试试看。

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

pip install --upgrade chatterbot

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

尝试从其源安装chatterbot:

https://github.com/gunthercox/ChatterBot/archive/master.zip

然后解压缩文件。

打开命令并键入:cd chatter_bot_master_目录后

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

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

希望有帮助:)

相关问题 更多 >