Translations:OpenStack command line clients/6/en

From Alliance Doc
Revision as of 20:52, 17 February 2023 by FuzzyBot (talk | contribs) (FuzzyBot a déplacé la page Translations:OpenStack Command Line Clients/6/en vers Translations:OpenStack command line clients/6/en sans laisser de redirection: Part of translatable page "OpenStack Command Line Clients")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

Question.png
[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.