Translations:OpenStack command line clients/6/en
Installation
If you have admin access on the machine you will run these from (e.g. your desktop) you can do
[name@server ~]$ sudo apt-get install python-dev python-pip
[name@server ~]$ sudo pip install python-openstackclient
To install on a machine without admin privileges (provided pip is already installed) use:
[name@server ~]$ pip install --user python-openstackclient
which installs to ~/.local/lib/pythonX.Y/site-packages/. By adding export PYTHONPATH=${HOME}/.local/lib/python2.7/site-packages/:${PYTHONPATH}
to your .bashrc
file if you are using Python major version X=2, and minor version Y=7, python can then load the OpenStack modules (see [] for information about working with the Python OpenStack API). Further adding export PATH=${HOME}/.local/bin:${PATH}
to your .bashrc will allow you to run the OpenStack commands directly. To install a specific version of the client using pip do pip install python_openstackclient==2.3.0
.