About 633,000 results
Open links in new tab
  1. How to create virtual env with Python 3? - Stack Overflow

    python3 -m venv ./path-to-new-venv This is the recommended way to create virtual environments. Historically, a wrapper command pyvenv was provided for this. However, the wrapper was …

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

    Dec 20, 2021 · I had a similar case, and here is how I solved it with using pyenv to install different versions of the Python interpreter and venv to create a virtual environment.

  3. What is a virtualenv, and why should I use one? - Stack Overflow

    Feb 1, 2017 · $ python3 -m venv ENV_DIR For Windows, you should replace python3 with the full path to python.exe:

  4. How can I set up a virtual environment for Python in Visual Studio …

    Jan 9, 2019 · In my project folder I created a venv folder: python -m venv venv When I run command select python interpreter in Visual Studio Code, my venv folder is not shown. I went one level up like …

  5. python - Automatically create file 'requirements.txt' - Stack Overflow

    1502 Sometimes I download the Python source code from GitHub and don't know how to install all the dependencies. If there isn't any requirements.txt file I have to create it by hand. Given the Python …

  6. Activate 'uv' environment - 'venv' mismatch - Stack Overflow

    Jul 4, 2025 · uv init uv venv source .venv/bin/activate uv add numpy pandas statsmodels uv sync Which results in this warning and in no packages being installed: Which is the right way of creating a virtual …

  7. Activating Python Virtual Environment on Windows 11

    Dec 31, 2022 · Always install Python via MSI. Always use py to create a new venv by running py -3.X -m venv .venv (where ".venv" is the name of the folder/venv directory) This way, you are allowing the …

  8. VS Code doesn't open Python virtual environment

    Jul 14, 2025 · I'm using Python 3.13.5 with VS Code 1.102.0 on Ubuntu 24.04.2. With VS Code updates, there were often problems with opening venv environment, but usually reloading VS Code was …

  9. How to determine if Python is running inside a virtualenv?

    Dec 9, 2009 · Inside a venv, sys.prefix points to the directory of the virtual environment, and sys.base_prefix to the Python interpreter used to create the environment. This is documented under …

  10. python - What is the difference between venv, pyvenv, pyenv, …

    Python 3.3 includes in its standard library the new package venv. What does it do, and how does it differ from all the other packages that match the regex (py)?(v|virtual|pip)?env?