Skip to content

Instantly share code, notes, and snippets.

@cjmcgraw
Created April 27, 2018 04:17
Show Gist options
  • Save cjmcgraw/28075d4d139a49304fe541b9cdc5ef42 to your computer and use it in GitHub Desktop.
Save cjmcgraw/28075d4d139a49304fe541b9cdc5ef42 to your computer and use it in GitHub Desktop.
virtualenv 101: what is this shit?
# install virtualenv: If its all fucked up. uinstall it, then install it again. OSX is bullshit
pip install virtualenv
# use virtualenv. args are optional
virtualenv --python=python3 ./venv
# activate that shit dawg
source ./venv/bin/activate
# normally changes your prompt. If not, what kinda bullshit shell you using
# (venv) $ ...
# (venv) $ ...
# (venv) $ pip install some-whatever the fuck I want
# fucking bullshit installed dawg!
#
# remove it later at your discretion by exiting
deactivate
# now all your python bullshit. Including the literal python version is packaged
# and you don't have to be an idiot installing shit all over the fucking place.
# global installs. What are we fucking cavemen?
#
# you can leave all your packages exactly how you wanted them whenever you want them.
@cjmcgraw
Copy link
Author

I am putting this here because my company lacks sensible ways to send each other code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment