[英]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_packages
or要么
python path_where_you_have_downloaded_packages\\setup.py install
python path_where_you_have_downloaded_packages\\setup.py install
Try it.尝试一下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.