我正在安裝 Chatterbot,因為我將在專案中使用它,但是當我嘗試安裝時出現錯誤:
pip install ./ChatterBot
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./ChatterBot
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-xd5wZH/setup.py", line 16, in <module>
platform.python_version()
Exception: You are tying to install ChatterBot on Python version 2.7.16.
Please install ChatterBot in Python 3 instead.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-xd5wZH/
我正在使用 rasPi 和 raspbian,這是我需要安裝來完成我的專案的最後一個 apt。
另外,我已經做了
pip install --upgrade setuptools
答案1
python3.10 -m pip install chatterbot==1.0.4
試試這個,它對我有用。使用您擁有的 python 版本。