ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

Very confused on how to install, can anyone explain?

Open TB3-Toransu opened this issue 4 years ago • 4 comments

I Installed it (I think?) and opened command prompt, type Pip install chatterbot just an error message. I then tried in python, and again, nothing happened.

TB3-Toransu avatar Jul 28 '21 06:07 TB3-Toransu

You have to install it like this: 1. do pip install chatterbot==1.0.4 in the cmd 2. do pip install pytz 3. Make your project with chatterbot and after an error message about sql alchemy appears in your code editor, copy the sql alchemy path, paste it into file explorer and you will find a file called "compat.py" 4. open it and find time = time.clock, change it to time = time.perf_counter. Then everything should work. I use python 3.8.7, but I don't know if it works with the latest.

cryokesh34 avatar Jul 30 '21 07:07 cryokesh34

You can also change the versions of the chatterbot-required libs by finding a file called "METADATA" and completely removing the version requirements to make it a bit more up to date. (chatterbot uses very old versions of some libraries like pyyaml, thus if you need the new features, you can't just upgrade them like that or it will conflict with chatterbot if not changed in the "METADATA" file) I don't remember where the file was though. I remember it was either in AppData/Roaming or AppData/Local and in the python libs folder.

cryokesh34 avatar Jul 30 '21 07:07 cryokesh34

You have to install it like this: 1. do pip install chatterbot==1.0.4 in the cmd 2. do pip install pytz 3. Make your project with chatterbot and after an error message about sql alchemy appears in your code editor, copy the sql alchemy path, paste it into file explorer and you will find a file called "compat.py" 4. open it and find time = time.clock, change it to time = time.perf_counter. Then everything should work. I use python 3.8.7, but I don't know if it works with the latest.

It works for me. Thanks!

ryqdev avatar Aug 02 '21 08:08 ryqdev

You have to install it like this: 1. do pip install chatterbot==1.0.4 in the cmd 2. do pip install pytz 3. Make your project with chatterbot and after an error message about sql alchemy appears in your code editor, copy the sql alchemy path, paste it into file explorer and you will find a file called "compat.py" 4. open it and find time = time.clock, change it to time = time.perf_counter. Then everything should work. I use python 3.8.7, but I don't know if it works with the latest.

It works for me. Using latest SQLAlchemy will have other error.

southadam avatar Oct 16 '21 17:10 southadam