pip not work code example
Example 1: python pip not working
Correct command:
python -m pip install modulename
Alternative(if it doesn't work):
py.exe -m pip install modulename
Example 2: pip install doesn't work
If youre in windows, try:
python -m pip install <lib>