Skip to content

Instantly share code, notes, and snippets.

@sudoxx2
Last active June 4, 2019 06:28
Show Gist options
  • Save sudoxx2/ab9e4c4457e1c8e58666c1a5a3bd11b7 to your computer and use it in GitHub Desktop.
Save sudoxx2/ab9e4c4457e1c8e58666c1a5a3bd11b7 to your computer and use it in GitHub Desktop.
Fourth Step: Creating our virtual environment
# This command will install virtualenv
pip install virtualenv
# This command will create our virtual env with python3 installed
virtualenv -p python3 env
# ONLY RUN THIS COMMAND if you get an error from the above command(windows users issue perhaps)
virtualenv -p python env
# This command will activate our virtual envirnoment and allow us to work with contained dependencies
source env/bin/activate
# ONLY RUN THIS COMMAND if the command from above causes error Windows might have this path instead for activating virtual environment
source env/Scripts/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment