You must have Python 2.7 and Python pip installed on your CentOS 7 host before you can install OpenStack CLI. Python is available, by default, on a CentOS 7 host.
For some reason, if Python and pip are not already installed, you must install Python and pip first, and then install OpenStack CLI.
Use the following commands to install Python and pip.
Install OpenStack CLI
Once Python and pip are installed, you are ready to set up a virtual environment and install OpenStack CLI on the virtual environment.
Follow the steps given below to install OpenStack CLI.
- Load the virtualenvwrapper setup script into your current shell session.
- Create a new virtual environment.
The context switches to the newly created virtual environment.</li>
- Upgrade pip.
- Run following command to set up Openstack CLI.
OpenStack CLI is successfully installed, and ready to be used on the CentOS 7 host.
Thank you for your feedback! What did you like about this article?
Thank you for your feedback! How could this article be improved?
Thank you for your feedback!