I use a Mac.
I followed the instructions in https://tutorials.rc.nectar.org.au/openstack-cli/01-overview to install the openstack and swift clients and then the instructions in https://tutorials.rc.nectar.org.au/object-storage/01-overview to upload a file into object storage via the CLI.
When I tried to use the swift upload command I got an error message telling me that I needed to install the python keystoneclient for authentication.
I did this using: pip3 install python-keystoneclient (https://pypi.org/project/python-keystoneclient/) and after that it worked flawlessly.