Update / install PIP
https://pip.pypa.io/en/stable/installing/
Update pip
# pip2 pip install -U pip # pip3 pip3 install --upgrade pip curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py ln -s /usr/local/bin/pip /usr/bin/pip # update all packages pip list --outdated --format=freeze | cut -d "=" -f1 | xargs -L1 pip install -U
List installed packages
pip list
Uninstall package
pip uninstall package
Install Ansible
pip install -U openstacksdk python-openstacksdk ansible
Install OpenStack clients (rocky release)
# install packages pip install -U \ "gnocchiclient" \ "pankoclient<0.6.0" \ "python-barbicanclient<4.8.0" \ "python-cinderclient<4.0.1" \ "python-cloudkittyclient" \ "python-glanceclient<2.14.0" \ "python-heatclient<1.17.0" \ "python-keystoneclient<3.18.0" \ "python-magnumclient<2.11.0" \ "python-mistralclient<3.8.0" \ "python-neutronclient<6.10.0" \ "python-novaclient<11.1.0" \ "python-octaviaclient<1.7.0" \ "python-openstackclient<3.18.0" \ "python-swiftclient<3.7.0" # Extend BASH completion openstack complete | sudo tee /etc/bash_completion.d/openstack source /etc/bash_completion
pyenv
https://realpython.com/intro-to-pyenv/
pyenv global 3.5.6
# ~/.pyenv/version
Misc
# install package from URL pip install https://pip.example.com/package1.whl pip install --upgrade decorator # search for file pip list | tail -n +3 | cut -d" " -f1 | xargs pip show -f | grep filename