About 9,120,000 results
Open links in new tab
  1. What is the use of python-dotenv? - Stack Overflow

    Jan 9, 2017 · Need an example and please explain me the purpose of python-dotenv. I am kind of confused with the documentation.

  2. How do I setup the dotenv file in Node.js? - Stack Overflow

    Mar 19, 2019 · 8 i didn't put my environment variables in the right format as was in the dotenv module documentation e.g. i was doing export TWILIO_CALLER_ID="+wwehehe" and so the …

  3. How do you load environment variables from .env and .env.local …

    Aug 10, 2021 · This might look like a newbie question, but I am unable to find the way to load environment variables from both .env and .env.local files in node with dotenv. Is it even …

  4. What is an .env (or dotenv) file exactly? - Stack Overflow

    Jul 6, 2021 · Some dotenv programs do just that: you prefix your command on the shell with dotenv and the variables in the dotenv file will magically be available in you process.

  5. Environment variable with dotenv and TypeScript

    How do I use dotenv with import? Preload dotenv: node --require dotenv/config index.js (Note: you do not need to import dotenv with this approach) Import dotenv/config instead of dotenv (Note: …

  6. import - no module named 'dotenv' python 3.8 - Stack Overflow

    Jan 3, 2020 · I had the same issue (Python 3.8.5, dotenv 0.15.0) and was getting ModuleNotFoundError: No module named 'dotenv' in both the console and JupyterLab. All …

  7. How to load .env file for different environments in python?

    from dotenv import load_dotenv load_dotenv(some_path) Now the vars in the .env file located at some_path can be used with os.getenv("VAR") or os.environ["VAR"] Expanded answer (As …

  8. python-dotenv not loading .env variable for API_KEY, but other ...

    Jul 25, 2025 · I'm working on a FastAPI project where I use python-dotenv to load environment variables from a .env file. Most variables load correctly, but the API_KEY variable is not being …

  9. How to set environment variables in a local .env file using dotenv …

    Sep 23, 2021 · This answer makes since but for those new to this thread, the dotenv module fails if an .env doesn't already exist in the proper file path.

  10. The Node.js application using the dotenv package fails to read ...

    Jun 16, 2025 · The dotenv package only looks for a file exactly named .env, without any extension. Because of this mismatch, dotenv.config () silently fails to load the environment …