PyChatGPT icon indicating copy to clipboard operation
PyChatGPT copied to clipboard

[BUG] Cannot import module pychatgpy

Open takeraparterer opened this issue 3 years ago • 8 comments

installed chatgptpy using: pip install chatgptpy --upgrade however, my code has a problem from pychatgpt import Chat, Options this line gives an error ModuleNotFoundError: No module named 'pychatgpt' help?

takeraparterer avatar Jan 08 '23 03:01 takeraparterer

You need to update your python version 3.8+

aa429879269 avatar Jan 12 '23 09:01 aa429879269

You need to update your python version 3.8+

I have python 3.10 it doesn't work

takeraparterer avatar Jan 12 '23 21:01 takeraparterer

solved by upgrading to python 3.11 now have issue: https://github.com/rawandahmad698/PyChatGPT/issues/133

takeraparterer avatar Jan 12 '23 21:01 takeraparterer

Ok.Good luck.

aa429879269 avatar Jan 13 '23 03:01 aa429879269

I met it too.But upgrading didnt work.

xu2243 avatar Apr 20 '23 03:04 xu2243

I'm facing the same error on python 3.10. Anyone has solved this issue?

kaviraj avatar May 08 '23 14:05 kaviraj

I knew the problem I met.I installed the wrong library and installed it as another project called 'pychatgpt', when in fact the library is called 'chatgptpy'. After switching to the correct library, it worked successfully.But the found this project cannot be used for now. Just look for another one.

xu2243 avatar May 08 '23 14:05 xu2243

For everyone facing this issue due to a wrong previous installation, here's the solution for Windows. Try using pipenv:

pip install pipenv

After successful installation of pipenv, you'll see two paths (/scripts, /Site-Packages) - add those to your environment variables. Open a new prompt and create a new pipenv:

pipenv shell

Now install the correct library chatgptpy:

pip install chatgptpy --upgrade

It should work now.

m-cetin avatar Oct 08 '23 21:10 m-cetin