package install python code example Example 1: how to install python libraries python -m pip install SomePackage Example 2: install python package pip3/pip2 install <package>