How I Setup My Local Python Environment

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.

/usr/bin/ruby -e "$(curl -fsSL"

brew install wget
brew install curl

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

export WORKSPACE=~/dev
export PROJ=$WORKSPACE/testproj1
mkdir-p $PROJ

cd $PROJ

Make virtual environment (aka isolated dependencies)

->$ mkvirtualenv testproj1

->$ pip install requests
Collecting requests
  Using cached requests-2.10.0-py2.py3-none-any.whl
  Installing collected packages: requests
  Successfully installed requests-2.10.0

Create file to test with:



import requests

r = requests.get('')
print r.status_code

get out of the file by pressing Esc on your keyboard then typing :wq



output should be:



Jason Meridth


My name is Jason Meridth. I am a continuously learning senior software developer/team lead/development manager trying to not let best be the enemy of better. I reserve the right to change my mind upon obtaining more information. I am also the owner and principal software consultant at Meridth, LLC. If you have any software, hardward, networking, process, etc needs please don't hesitate to reach out to me.

Raspberry Pi Kubernetes Cluster - Part 1

HowdyThis is going to be the first post about my setup of a Raspberry Pi Kubernetes Cluster. I saw a post by [Hart Hoover](https://harth...… Continue reading

SSH - Too Many Authentication Failures

Published on March 28, 2018

Clear DNS Cache In Chrome

Published on March 27, 2018