I've been trying to install chatterbot with pip but when i did
pip install ChatterBot
it gave me this error:
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Encountered error while trying to install package.
preshed
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
Could you try installing a specific version:
pip install chatterbot==1.0.2
or
pip install chatterbot==1.0.4
Change the version as needed.
It's hard to say from what you've posted but for me it was that I used python 3.10. ChatterBot only works up to python 3.8 (see info in release 1.0.7 here: https://github.com/gunthercox/ChatterBot/releases ). So check what version of python you have installed. If it's higher than 3.8 it might be the problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.