About 50 results
Open links in new tab
  1. How can I access environment variables in Python?

    I haven’t set it (PYTHONPATH) before; what I am doing just go with command prompt and type CMD anywhere (since python.exe is in my shell PATH). If I try to access Window ENVIRONMENT …

  2. How can I create a virtual environment with Python 3?

    virtualenv is the tool of choice for Python 2, while venv handles the task in Python 3. Yet, you can create the virtual environment for Python 3 using any of them.

  3. How to set environment variables in Python? - Stack Overflow

    I need to set some environment variables in the Python script and I want all the other scripts that are called from Python to see the environment variables' set. If I do, os.environ["DEBUSSY&q...

  4. python - VS Code not recognizing .env file inside workspace folder ...

    Apr 19, 2023 · In order for Python to automatically detect a .env file within a workspace folder, you need to ensure that you have the Python extension installed in VS Code. Once you have the extension …

  5. Use different Python version with virtualenv - Stack Overflow

    Oct 8, 2009 · python3.6 -m venv "my_env_name" Make sure to install the referenced version of Python along with your existing system Python.

  6. How to create a venv with a different Python version

    Dec 20, 2021 · Then run the command py -//python version// -m venv //environment name// , for example py -3.9 -m venv env3.9, to create a virtual environment which uses your desired Python …

  7. Why do people write "#!/usr/bin/env python" on the first line of a ...

    Mar 12, 2010 · I see these at the top of Python files: #!/usr/bin/env python #!/usr/bin/env python3 It seems to me that the files run the same without that line.

  8. python - virtualenv in PowerShell? - Stack Overflow

    Now open the powershell pip install virtualenv (if virtualenv is not installed in your system) python -m virtualenv myenv (here "myenv" is the name of your environment)

  9. How to correctly set PYTHONPATH for Visual Studio Code

    Dec 6, 2018 · Following the documentation, I have created my own .env file in the workspace directory which sets the order of preference for locations from which python should import the modules.

  10. Having trouble with the python env with vscode - Stack Overflow

    Oct 28, 2024 · Having trouble with the python env with vscode Ask Question Asked 1 year, 5 months ago Modified 1 year, 5 months ago