Skip to content

Forum in maintenance, we will back soon 🙂

Import "dotenv" cou...
 
Notifications
Clear all

Import "dotenv" could not be resolved

2 Posts
1 Users
3 Reactions
107 Views
(@sylogh)
Posts: 5
Active Member
Topic starter
 
Hi Hassan,
 
I tried to study your code for "Building AI Agents from scratch video" in visual studio code in my system.
 
This line of code in In mains.py, from dotenv import load_dotenv, gave the error below:
 
Import "dotenv" could not be resolved.
 
Pls, where can I find the "dotenv" module?
 
Thanks.
 
 
Posted : 07/01/2024 12:53 pm
(@sylogh)
Posts: 5
Active Member
Topic starter
 

Oh! I forgot to install python-dotenv. Just did that and the error is gone.

Thanks, Hasan!

 
Posted : 07/01/2024 2:38 pm
Share: