Installing Python and Pip

If you are using MacOS and have Homebrew installed, you can first check if Python is installed already:

For Python 2: $ python -V

For Python 3: $ python3 -V

Python 2 and 3 have some big differences. I would recommend using the latest version for your projects if you are starting clean.

If you DON’T have Python already installed on your Mac, use Homebrew to install it:

brew install python

Python has their own package manager called pip. To install pip,

sudo easy_install pip

Now you can install dependencies for your project like the Requests module for making HTTP requests.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s