Mac OS X
Check if you have installed Python 2.6 or newer. See the installation guide for Python 3 below of the Python 2 instructions.
Python 2.X Installation guide
Install pip package through the package manager for your system:
sudo easy_install pip
Run this command to install a client package for a desired project. Note that you must install each client separately.
sudo pip install python-PROJECTclient
Where PROJECT is the project name for the OpenStack component (such as nova, glance or cinder). Example:
sudo pip install python-novaclient
Python 3.X Installation Guide
(Optional) If you haven’t installed Homebrew on your system yet (this might take a few minutes):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(Optional) Using brew we’re going to install Python 3:
brew install python
Now Python 3 is installed we can finally install the OpenStack command line tools:
sudo pip3 install python-openstackclient
Common steps for both Python2 and 3
The OpenStack environment variables should then be set up. This can be done using the steps at Environment options. It is recommended to use the Local Password script for a personally managed Mac.
The environment can then be sourced as usual.
source Personal\ USERNAME-openrc.sh