Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot import module pychatgpy #138

Open
takeraparterer opened this issue Jan 8, 2023 · 8 comments
Open

[BUG] Cannot import module pychatgpy #138

takeraparterer opened this issue Jan 8, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@takeraparterer
Copy link

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 takeraparterer added the bug Something isn't working label Jan 8, 2023
@aa429879269
Copy link

You need to update your python version 3.8+

@takeraparterer
Copy link
Author

takeraparterer commented Jan 12, 2023

You need to update your python version 3.8+

I have python 3.10 it doesn't work

@takeraparterer
Copy link
Author

solved by upgrading to python 3.11
now have issue:
#133

@aa429879269
Copy link

Ok.Good luck.

@xu2243
Copy link

xu2243 commented Apr 20, 2023

I met it too.But upgrading didnt work.

@kaviraj
Copy link

kaviraj commented May 8, 2023

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

@xu2243
Copy link

xu2243 commented May 8, 2023

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.

@m-cetin
Copy link

m-cetin commented Oct 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants