I’ve had a few people ask me lately how I setup my local python environment.
I am using iterm2 (v3.0.0) on OSX. That means I am using homebrew and I installed wget and curl via brew.
| |
Install the python package manager pip
| |
Install the virtualenvwrapper package. It lets you manage python virtual environments easier than just using virtualenv
sudo pip install virtualenvwrapper
Create working directory and project directory
| |
Make virtual environment (aka isolated dependencies)
| |
Create file to test with:
vim test.py
inside test.py:
| |
get out of the file by pressing Esc on your keyboard then typing :wq
continuing:
python test.py
output should be:
200
Voila!!