You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was following along with TwilioQuest and thought I'd use it as an opportunity to expand my repertoire with Python.
Trick is, I don't have the command virtualenv and while I followed the link to https://docs.python.org/3/library/venv.html it didn't tell me how to get virtualenv -- in fact the text "virtualenv" doesn't exist at that link.
That said, virtualenv -p python3 env source env/bin/activate didn't work:
~/src/starter-python [master] $ virtualenv -p python3 env source env/bin/activate
Running virtualenv with interpreter /usr/local/bin/python3
Already using interpreter /usr/local/opt/python/bin/python3.6
There must be only one argument: DEST_DIR (you gave env source env/bin/activate)
I simply cd'ed into the directory I'd just cloned.
@taffy-nay virtualenv and source are two different commands. You should not get the error message unrecognized arguments: source env/bin/activate if you issue them on two lines like this.
Activity
arigoldx commentedon Aug 15, 2019
After clicking around a bit I found https://virtualenv.pypa.io/en/latest/installation/ which lead me to
pip install virtualenv(non-sudo, as per the link).That said,
virtualenv -p python3 env source env/bin/activatedidn't work:I simply cd'ed into the directory I'd just cloned.
arigoldx commentedon Aug 15, 2019
Ah I think I got it.
After reading deeper into the linked python docs for virtual environments, I think I was successful with a
python3 -m venv envfollowed by asource env/bin/activate.I'm gonna go with it and see what happens :)
Sailandsee commentedon Jun 9, 2020
I couldn't work it out, then I watched this video, which is awesome https://www.youtube.com/watch?v=APOPm01BVrk
taffy-nay commentedon Aug 10, 2020
I'm not sure if my issue is related at all, but when I try to activate the virtualenv I get
virtualenv: error: unrecognized arguments: source env/bin/activateI'm not really sure what this is meant to mean.
domincl commentedon Dec 9, 2020
@taffy-nay virtualenv and source are two different commands. You should not get the error message
unrecognized arguments: source env/bin/activateif you issue them on two lines like this.I have submitted PR #9 to fix README.md
darrendbutler commentedon Dec 10, 2020
I believe for windows, the command to activate your virtual environment is:
enviornmentName\Scripts\activateThe windows command isn't mentioned in the readMe. I ran this command on powershell.