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.