About 163,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 · Therefore, when creating a new venv for a new project, I would like to downgrade Python, say to 3.8, only for this specific venv. How can I do that? What should I type onto the …

  3. How to create a Python 2.7 virtual environment using Python 3.7

    The venv module was introduced in Python 3.3, so you cannot use it to create virtual environments with python 2.7. You could use the virtualenv package which is a superset of venv.

  4. Where do I put my python files in the venv folder?

    Jul 24, 2018 · I think @tripleee 's answer is enough to answer this question, but I recently has a problem when I put my python files in the myproject folder because I was making an exe file with it (using …

  5. Installing venv for python3 in WSL (Ubuntu) - Stack Overflow

    sudo apt install python3-venv In this case the installation seems to complete, but when I try to create a virtual environment with python3 -m venv ./venv, I get an error, telling me to do apt-get install …

  6. virtualenv - I am trying to create a virtual environment in python but ...

    Dec 4, 2020 · Assuming that you are using Python 3, you can follow the below steps to create and activate Python environment: To create environment: python -m venv path/to/virtualenv

  7. Creating a virtual Python environment in VS code

    Mar 6, 2024 · To create a .venv folder in vscode. Open vscode in a folder Install the python extension Use the command palette (ctrl+maj+P) and type "Python: Create environment" Follow the …

  8. Cannot properly create a virtual enviroment in Python 3.12

    Oct 4, 2023 · Cannot properly create a virtual enviroment in Python 3.12 Asked 2 years, 2 months ago Modified 2 years, 1 month ago Viewed 43k times

  9. 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 …

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

    1500 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 …