About 50 results
Open links in new tab
  1. How can I create a virtual environment with Python 3?

    282 Use: 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 …

  2. python - How to create venv - Stack Overflow

    Dec 6, 2021 · I have been using my python v3.9 in my virtual environment, it contains all the packages and scripts i have been using for so long. But, now with the release of python v 3.10 it installed itself …

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

  4. python - How can I activate a virtualenv in Linux? - Stack Overflow

    To add clarifying details to this: once you create your virtual environment with virtualenv venv , then manually go into the Scripts folder that was created just to look at the files, you'll see some activate …

  5. python - How to activate virtual environment from Windows 10 …

    Oct 23, 2017 · I'm trying to create and activate a virtual environment, using Windows 10 command prompt. I know that virtualenv is installed correctly, as the command virtualenv venv Works.

  6. python - Creating "virtualenv" for an existing project - Stack Overflow

    I have a python on which I've been working on. Now I've realized that I need a virtual environment for it. How can I create it for an existing project? If I do this: virtualenv venv will it work...

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

    Feb 1, 2017 · (venv)$ deactivate $ python [...] >>> import requests Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'requests' You can create as many …

  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, 4 months ago Modified 2 years, 3 months ago Viewed 45k times

  9. How to create Python Virtual environment within a python script

    Sep 13, 2019 · To create a virtual env from inside a python script you can use the virtualenv python module. It pretty much comes down to a single line of code.

  10. python - How can I properly use Pyenv and venv? - Stack Overflow

    Oct 10, 2018 · You create a directory for your project, cd into it, and run virtualenv venv for a simple virtualenv, but you can also specify which Python executable you'd like in your virtual environment …