You need Python on your Mac. Check in Terminal if available.
$ python3 --version
If not, you could use brew to installl it.
$ brew install python
We advise using a Python virtual environment to install the tools.
$ python3 -m venv venv/openstack $ source venv/openstack/bin/activate # your environment will be visible before your prompt (openstack) $ pip3 install python-openstackclient==6.6.1 (openstack) $ pip3 install python-swiftclient
Naturally, you will need to activate the environment whenever you use these tools.
Now test the open stack client.
(openstack) $ openstack --version
It should show:
openstack 6.6.1
Some issues on macOS
There is a conflict when using the OpenStack Swift client on macOS because both macOS and the OpenStack Swift client use a command called swift. When you run swift in the terminal, macOS prioritizes its own Swift programming language tool, making it difficult to access the OpenStack Swift client for managing object storage. One way to get around this is to adjust the PATH variable so that the OpenStack Swift Client is found first. Or use the swift package with the correct path. If your python venv is in your home directory you could access the swift command like this.
./venv/openstack/bin/swift
On macOS you could also get some warnings like:
NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+
They can be ignored. If you like to suppress these warnings for the openstack program you could use this setting to disable the warnings.
(openstack) $ PYTHONWARNINGS=ignore openstack --version