mini-agi
mini-agi copied to clipboard
No module named OpenAI
I have this problem when I try to run with python 3.8 I have tried with other version too but it get too many errors
python3.8 microgpt.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice on the Desktop."
Traceback (most recent call last):
File "microgpt.py", line 4, in <module>
import openai
ModuleNotFoundError: No module named 'openai'
Same..
Did you install the requirements?
pip install -r requirements.txt
Did you install the requirements?
pip install -r requirements.txt
of course.. I installed the openai module from pip too
Seems to be a common issue. Check out the answers to this Stackoverflow question.
whilst installing the requirments, it freezes and just does nothing here:
Collecting async-timeout<5.0,>=4.0.0a3 Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting mpmath>=0.19 Downloading https://www.piwheels.org/simple/mpmath/mpmath-1.3.0-py3-none-any.whl (536 kB) |████████████████████████████████| 536 kB 126 kB/s Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/lib/python3/dist-packages (from torchvision->sentence-transformers>=2.2.2->chromadb==0.3.11->-r requirements.txt (line 9)) (8.1.2) Building wheels for collected packages: duckdb, hnswlib Building wheel for duckdb (setup.py) ... -
I just wait and wait and nothing happens. I managed to install openai regularly though, but when I run the script I get:
Traceback (most recent call last):
File "/home/kevin/micro-gpt/microgpt.py", line 5, in
I just wait and wait and nothing happens. I managed to install openai regularly though, but when I run the script I get:
Traceback (most recent call last): File "/home/kevin/micro-gpt/microgpt.py", line 5, in from termcolor import colored ModuleNotFoundError: No module named 'termcolor'
Run pip install termcolor
.
I believe we can close this since the error in the OP is caused by the OpenAI library.