Installing OpenStack CLI Tools on Mac OS X

The OpenStack Command-line Interface (CLI) tools are supported on Python 2.7. While Mac OS X comes with Python 2.7, it is ideal to use a virtual environment so that your work is isolated and you can control the tool versions.

To prepare your OS X environment, you need to install the following tools:

Using a Virtual Environment for the Installation

  1. Start the Terminal application.
  2. Change to your project directory.
  3. Create a virtual environment.

    $ virtualenv <virtualenv_name>
    
  4. Activate the virtual environment.

    $ source <virtualenv_name>/bin/activate
    

    Now that the virtual environment is active, your prompt changes to indicate the virtual environment you are currently using: (virtualenv_name) $

Note
If you are using a conda system, like Anaconda or Miniconda, you should use the environment management system provided by conda.

Installing the OpenStack Client

With the virtual environment active, install the OpenStack client, which in turn installs python-novaclient and the other dependent clients:

(virtualenv_name) $ pip install python-openstackclient

Follow the instructions in Providing Metacloud Credentials to CLI Tools to begin performing OpenStack commands.