-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Python Commands | ||
|
||
00. CNTL + Z (terminate the python shell) | ||
01. `brew install pipenv` (installs pipenv, something roughly equivalent to npm for node) | ||
2. `python` (opens `>>>` prompt to execute python commands) | ||
3. `curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py` (downloads pip package manager for python) | ||
4. `python get-pip.py` (runs pip you just download in above step) | ||
5. `python -m venv env` (creates a virtual environment inside of whatever folder you start it in, python 3) | ||
6. `source env/bin/activate` (activates your virtual environment) | ||
7. `deactivate` (stops your virtual environment) | ||
8. `pip install virtualenvwrapper` (gives you another set of virtual environment tools to work with) | ||
9. `mkvirtualenv your-environment-here` (if using `virtualenvwrapper`, this starts up) | ||
10. `workon your-environment-here` (takes your environment and makes the virtual one for you - make sure you're in the right folder) |