简体   繁体   English

安装 chatterBot 时出错

[英]Error while installing chatterBot

Whenever I try to install ChatterBot using command pip install ChatterBot it gives this error:每当我尝试使用命令pip install 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

I downgraded from Python 3.6 to 2.7, yet receiving the same error.我从 Python 3.6 降级到 2.7,但收到相同的错误。

I am using windows 8, Anaconda 2.7我使用的是 Windows 8,Anaconda 2.7

试试这个它会安装:

pip install chatterbot==1.0.4

The problem here is not ChatterBot but the pip command.这里的问题不是 ChatterBot 而是 pip 命令。

Try install chatterbot from it's source: https://github.com/gunthercox/ChatterBot/archive/master.zip尝试从其来源安装 chatterbot: https : //github.com/gunthercox/ChatterBot/archive/master.zip

Then unzip the file.然后解压文件。

After open up cmd and type in: cd chatter_bot_master_directory打开cmd后输入: cd chatter_bot_master_directory

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

If it doesn't work, retry it with more permission: Open up cmd in admin mode.如果它不起作用,请使用更多权限重试:在管理员模式下打开 cmd。

It's case sensitive issue, Try like this这是区分大小写的问题,试试这样

pip install --upgrade chatterbot pip install --upgrade chatterbot

It is a PIP installation Error!这是一个PIP安装错误! ChatterBot can not be installed with PIP cmd. ChatterBot 不能与 PIP cmd 一起安装。 For every module that can not be installed with PIP, Follow following procedure:对于每个不能使用 PIP 安装的模块,请按照以下步骤操作:

1) Download module from GITHUB or PyPi. 1) 从 GITHUB 或 PyPi 下载模块。

2) Unzip and place it in any Directory that you want to install module in. 2) 解压并将其放置在您要安装模块的任何目录中。

3) In CMD: cd ,where is location where 'setup.py' of that module is located. 3) 在 CMD: cd 中,该模块的 'setup.py' 所在的位置在哪里。

4) Now, CMD: python setup.py install 4)现在,CMD:python setup.py install

Module is now installed for use.模块现在安装使用。

You'll need to install pip for windows ie pipwin So try--您需要为 Windows 安装 pip,即 pipwin 所以尝试--

pip install pipwin

then--然后 -

pipwin install pyaudio 

wait for a few moments as pipwin takes time to execute等待片刻,因为 pipwin 需要时间来执行

then install pocketsphinx using然后使用安装pocketsphinx

pipwin install pocketsphinx

then try然后尝试

pip install chatterbot==1.0.5

尝试在我的情况下安装 python 3.7.4 它可以工作

Please try请试试

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

or要么

pip install chatterbot==1.0.2

You are getting this error because you have not installed required package.您收到此错误是因为您尚未安装所需的软件包。 I think you need download them and install them before trying to install the chatterBot directly.我认为您需要先下载并安装它们,然后再尝试直接安装 chatterBot。 You can install using 'pip' or you can download and us 'python'.您可以使用“pip”进行安装,也可以下载并使用“python”。

pip install path_where_you_have_downloaded_packages pip 安装 path_where_you_have_downloaded_pa​​ckages

or要么

python path_where_you_have_downloaded_packages\\setup.py install python path_where_you_have_downloaded_pa​​ckages\\setup.py install

Try it.尝试一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Python 上安装 chatterbot 时出错 - Error with installing chatterbot on Python 通过命令提示符安装 chatterbot 库时出错 - Error while installing chatterbot library through command prompt 安装名为chatterbot的软件时出错 - Error in installing a software named chatterbot 安装聊天机器人时出错,卡在 spacy 上 - Error installing chatterbot, stuck on spacy 安装聊天机器人时出错。 我不知道安装什么包来解决这个错误 - Error while installing chatterbot. I don't know what packages to install to solve the error 在 windows 上安装 ChatterBot python 库时出现安装错误,其中 Python 3.8.2 使用 Z354E8D152DCC40AEZ66183 - Installation error while installing ChatterBot python library on windows with Python 3.8.2 using PIP pip install Chatterbot error 安装 chatterbot 错误值:源代码字符串不能包含 null 字节 - pip install Chatterbot error installing the chatterbot erroevalue:source code string cannot contain null bytes 使用64位系统时使用Chatterbot时出错 - Error using Chatterbot while using a 64-bit system 创建新的逻辑适配器 chatterbot 时输入错误 - Type error while creating new logic adapter chatterbot 安装 chatterbot 但收到“错误:无法为使用 PEP 517 且无法直接安装的 spacy 构建轮子” - Installing chatterbot but getting "ERROR: Could not build wheels for spacy which use PEP 517 and cannot be installed directly"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM