import dotenv cfg = dotenv.dotenv_values('.env') Post navigation Install torch-cpu using PoetryHow to pass environment variables on Docker-run