Module 1. Building LLM prompts with Variables. Problem No module named 'helper_functions' (original) (raw)
February 11, 2025, 2:26pm 1
When creating this code on the local PC in VS studio
from helper_functions import print_llm_response
i have this error
“ModuleNotFoundError: No module named ‘helper_functions’”
please help me what shoud I do?
Finally i found helper_functions.py file at the Lab Files location on the Coursera, but this files import
“from openai import AzureOpenAI, DefaultHttpxClient”
openai module, where shoud I look for this module?
Please help
OliverD25 February 11, 2025, 2:30pm 2
where to get this module on the local machine?
gent.spah February 11, 2025, 3:56pm 3
Hmm on local machine there might be quite a few issues. On the lab in Coursera in the Folders Option, if you open it, you should see the available files. You need all those files in your local folder machine, and hopefully, that part is in there!
OliverD25 February 11, 2025, 6:11pm 4
thank you for your reply, i found helper_funisions.py file on the lab in the Folders Option, but then I need openai module because of this code
from openai import AzureOpenAI, DefaultHttpxClient
and can not find openai.py file
please help
bmiteva February 11, 2025, 10:23pm 5
You need to install the openai library before you can use it (documentation here: openai · PyPI). Since you are using Visual Studio, you could follow the instructions under “Install packages for the Python environment” from Python in Visual Studio tutorial Step 5, install packages | Microsoft Learn.
OliverD25 February 12, 2025, 12:30am 6
Thank you, it helped me!