# Installing OpenStack CLI Client on Ubuntu 18.04

Before you install OpenStack CLI, you must install Python and the required compiler packages on Ubuntu.

Follow the steps given below to install Python and the required compiler packages.

1\. Update the list of available packages.

{% tabs %}
{% tab title="Shell" %}

```bash
apt-get -y update
```

{% endtab %}
{% endtabs %}

2\. Install GNU compiler library (GCC), Python, and the dependent libraries.

{% tabs %}
{% tab title="Shell" %}

```bash
apt-get -y install gcc libffi-dev libssl-dev python python-dev python-virtualenv virtualenvwrapper
```

{% endtab %}
{% endtabs %}

## Install OpenStack CLI

Follow the steps given below to install OpenStack CLI on a Ubuntu 14.04 or Ubuntu 16.04 host.

3\. Load virtualenv variables.

{% tabs %}
{% tab title="Shell" %}

```bash
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
```

{% endtab %}
{% endtabs %}

4\. Create a virtual environment.

{% tabs %}
{% tab title="Shell" %}

```bash
mkvirtualenv os_cli
```

{% endtab %}
{% endtabs %}

5\. Upgrade pip to the latest version.

{% tabs %}
{% tab title="Shell" %}

```bash
pip install pip --upgrade
```

{% endtab %}
{% endtabs %}

6\. Run following command to set up OpenStack CLI.

{% tabs %}
{% tab title="Shell" %}

```bash
pip install --upgrade --requirement https://raw.githubusercontent.com/platform9/support-locker/master/openstack-clients/requirements.txt --constraint https://raw.githubusercontent.com/openstack/requirements/stable/pike/upper-constraints.txt
```

{% endtab %}
{% endtabs %}

OpenStack CLI is successfully installed, and ready to be used on the Ubuntu host.
