pip install -U python-dotenv #### And in your script from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv())