how to install packages from python script code example Example 1: install python package pip3/pip2 install Example 2: install packages with pip from python pip3 install