Skip to main content
16 events
when toggle format what by license comment
May 22, 2023 at 7:59 comment added Daniel Lee venv is the name of the environment in this case
May 12, 2023 at 6:23 comment added Arpit Sisodia where is the environment name to be mentioned?
S Jan 18, 2023 at 6:27 history suggested Pux CC BY-SA 4.0
Add correct command for Windows.
Jan 16, 2023 at 15:05 review Suggested edits
S Jan 18, 2023 at 6:27
Jan 15, 2023 at 12:21 comment added ᐅdevrimbaris better to use $() syntax e.g $(which python) in the ending part.
Jan 20, 2021 at 15:31 comment added Manoj D Bhat In windows you can use where python instead of which python
Dec 29, 2020 at 11:19 comment added Rohan Devaki thankyou this command virtualenv venv --python=python3.8 worked, but for this we need to download python3.8 also right?, now i have python3.9 and python3.8, that is why i am asking this question..
Jul 16, 2019 at 17:23 comment added abautista In Windows, this worked like a charm with a minor tweak: virtualenv venv --python=<insert_your_python_version_here> where <insert_your_python_version_here> was in my case C:\Python\Python368\python.exe
Nov 20, 2018 at 19:54 comment added user1767754 That's a proper solution, once you have all versions, you are interested in justing using the alias not the full path
Feb 5, 2018 at 6:56 comment added Anshul You can actually drop the minor version number. virtualenv env --python=python2
Sep 7, 2017 at 18:03 comment added Jordan I was able to do this with virtualenv venv --python=python3.6 as well
May 24, 2017 at 7:28 history edited Daniel Lee CC BY-SA 3.0
added 108 characters in body
May 2, 2017 at 8:10 history edited Daniel Lee CC BY-SA 3.0
Updated for a more complete answer
Jan 30, 2017 at 8:53 history edited Daniel Lee CC BY-SA 3.0
added 200 characters in body
Jan 27, 2017 at 20:23 comment added kingb12 FYI, only works if you have python2.7 installed at the system level (e.g. /usr/bin/python2.7)
Nov 1, 2016 at 11:59 history answered Daniel Lee CC BY-SA 3.0