pip installed but not found code example

Example 1: pip command not found macos

sudo easy_install pip

Example 2: 'pip' is not recognized as an internal or external command, operable program or batch file.

py -m pip install [packagename]

Example 3: pip is not a batch command but python is installed

python -m pip install [packagename]

Example 4: module installed but not found python

>/bin/env python -m pip install --upgrade mymodule
# or 
/bin/env python -m pip install --upgrade mymodule

Tags:

Misc Example