I had ChatGPT write a simple Python script to print out the current time in half a dozen different time zones. When I ran the code, it installed the pytz library and executed properly.
I then added ‘import openai’ to the script and ran again and got the error: “RunModuleNotFoundError: No module named ‘openai’”.
Does anyone know if/how ChatGPT is setting up a venv to run its code? It’s not going to be very useful if I can’t install libraries. Preferably, I would give it a venv to use and install the libraries I need. Maybe I am missing something obvious.
I am talking about within ChatGPT’s own sandbox. I have no way to pip install any libraries there. That’s why I am asking where its sandbox’s venv might be located so I can go install libraries as needed.
I think the set of available libraries is limited, not sure to what at this stage, but I will ask the question.
I’m making the assumption that the openai library is not installed in that sandbox as potentially it’s not got access to the internet, some investigations are required as this is all still very new
That is what I figured. And that is somewhat discouraging. It’s rare that I would really run code in Canvas, but it might grow on me. However, lack of libraries is a big issue.