labteral / chatgpt-python

Unofficial Python SDK for OpenAI's ChatGPT
https://labteral.github.io/chatgpt-python/
GNU General Public License v3.0
523 stars 76 forks source link

No module named chatgpt.__main__; 'chatgpt' is a package and cannot be directly executed #27

Open Nesonica opened 1 year ago

Nesonica commented 1 year ago

When running:

(venv) PS C:\Users\Nesin\PycharmProjects\chatgpt-python> python -m chatgpt

I get this error:

C:\Users\Nesin\PycharmProjects\chatgpt-python\venv\Scripts\python.exe: No module named chatgpt.main; 'chatgpt' is a package and cannot be directly executed

How can I solve this?