Python module error?
Hello,
I just tried to install the Python module chatterbot in the terminal (as an administrator) using the command pip install chatterbot. It installed fine at first, but at the end there was an error, see image below. I'm using Windows 11 Pro and have Python 3.12, 3.10, 3.7, and 3.8 installed, but it still doesn't work.
Python modules should not be installed as an admin (root).
Find a folder somewhere and execute it:
Then you can install your module (probably in the way mentioned in the other answer). In order to use this, the venv has to source venv/bin/activate activate.
—
Edit: I just see you use Windows. No plan on how it works. But also I’m pretty sure that’s a stupid idea to run that as an admin.
The imp module was removed in python 3.12, which is why you get this error. That means you have to make sure you use an older python version.
Unfortunately, I don’t know how to make sure that pip uses an older python version, but maybe you’ll find it out somehow.