2017-07-05 46 views
1

每當我試着用命令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 

我在Python 3.6降級到2.7,但收到了同樣的錯誤。

我使用Windows 8,蟒蛇2.7

回答

0

,因爲你還沒有安裝所需的程序包您收到此錯誤。我認爲你需要下載它們並在嘗試直接安裝chatterBot之前安裝它們。 您可以使用'pip'進行安裝,也可以下載我們的'python'。

pip install path_where_you_have_downloaded_packages

python path_where_you_have_downloaded_packages\setup.py install

試試吧。

1

這裏的問題不是聊天機器人,但畫中畫命令。

嘗試從它的源代碼安裝聊天機器人:

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

然後解壓縮文件。

後打開cmd並鍵入:CD chatter_bot_master_directory

最後只需鍵入:蟒蛇(3)的setup.py安裝

如果它不工作,有更多的權限重試:打開CMD在管理模式下。

希望它能幫助:)

+0

我試圖安裝在管理模式下,我得到這個錯誤 (C:\ Anaconda2)C:\ Users \ Admin \ Desktop \ ChatterBot-master> python setup.py install 在https:// pypi上下載錯誤。 python.org/simple/setuptools-markdown/:( '_ssl.c: 645:握手操作超時',) - 一些包可能不會被發現! 找不到'setuptools-markdown'的索引頁(可能是拼寫錯誤?) 在https://pypi.python.org/simple/上下載錯誤:('_ssl.c:645:握手協議o peration超時',) - 可能找不到一些軟件包! 找不到setuptools-markdown的本地包或工作下載鏈接。 –

0

這是區分大小寫的問題,嘗試這樣

pip install --upgrade chatterbot

+0

嗨Mallikarjunarao, 還是同樣的錯誤。 重試(重試(總= 0,連接=無,讀取=無, :讀超時(讀取超時= 15)」,)':/簡單/聊天機器人語料庫/ 找不到滿足要求聊天機器人語料庫<1.0的版本。 0,> = 0.0.1(來自聊天機器人)(從版本:) 沒有匹配的分佈找到的聊天機器人語料庫<1.0.0,> = 0.0。1(來自chatter bot) –

+0

@SumantGK GK在我看來,Anaconda無法獲得chatterbot-corpus,我會嘗試在機器上重現此問題,您可以這樣做的解決方法:在安裝chatterbot之前,可以嘗試安裝chatterbot- corup'pip install --upgrade chatterbot-corpus',然後安裝'chatterbot pip install --upgrade chatterbot' –