iT邦幫忙

0

無法安裝chatterbot

  • 分享至 

  • twitterImage

想要安裝python裡的chatterbot,但試了網路上的方法一直裝不起來,最後都會出現一堆紅字(如圖),不懂是因為版本嗎還是有其他問題?求解......
https://ithelp.ithome.com.tw/upload/images/20210720/20139662TJUtHO9IA9.pnghttps://ithelp.ithome.com.tw/upload/images/20210720/20139662Y32akX3zvj.pnghttps://ithelp.ithome.com.tw/upload/images/20210720/20139662TCSfwEE6Js.pnghttps://ithelp.ithome.com.tw/upload/images/20210720/20139662Ly66jTwTkf.png

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

1
軒尼斯
iT邦新手 4 級 ‧ 2021-07-20 23:54:09

看圖有點辛苦~
你要不要先試試把log檔貼上來
pip3 install chatterbot --log log.txt

或去Github看看,好像也有人有問題
https://github.com/gunthercox/ChatterBot/issues

hippow iT邦新手 5 級 ‧ 2021-07-21 10:32:30 檢舉

log檔如下:

Installing build dependencies ... error
ERROR: Command errored out with exit status 1: 'C:\Users\chun\anaconda3\python.exe' 'C:\Users\chun\anaconda3\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\chun\AppData\Local\Temp\pip-build-env-xnk6ve4h\overlay' --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0' Check the logs for full command output.

軒尼斯 iT邦新手 4 級 ‧ 2021-07-21 20:57:36 檢舉

https://github.com/gunthercox/ChatterBot/issues/1699
試試 Python3.7 64bit 裝 1.04版chatterbot

pip install chatterbot ==1.0.4

hippow iT邦新手 5 級 ‧ 2021-07-26 15:19:13 檢舉

打了上述的指令會出現這樣的錯誤:
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

在網路上有找到在後面多打了「--ignore-installed」如下:

pip install chatterbot==1.0.4 --ignore-installed

仍有錯誤訊息,不過最後有顯示成功安裝了
https://ithelp.ithome.com.tw/upload/images/20210726/20139662ZcQFlYJ44W.png

1
I code so I am
iT邦高手 1 級 ‧ 2021-07-21 19:31:31

可以試試:
pip install -U chatterbot --ignore-install

hippow iT邦新手 5 級 ‧ 2021-07-26 15:20:28 檢舉

這個一樣會顯示上面的錯誤

我要發表回答

立即登入回答