"Python -M Pip Install Pynput" vs "Pip Install Pynput"
I First Tried Pip Install Pynput Then I Got This Error: Error: Could Not Find a Version That Satisfies the Requirement Pynput (From Versions: None) Error: No...
I first tried
pip install pynput
Then I got this error:
ERROR: Could not find a version that satisfies the requirement pynput (from versions: none)
ERROR: No matching distribution found for pynput
Then I tried:
python -m pip install pynput
Then I got this:
Installing collected packages: python-xlib, pynput
Successfully installed pynput-1.5.0 python-xlib-0.25
So what is difference between "python -m pip install pynput" and "pip install pynput"? I do this inside a conda environment, which has python 2.7 in it
1 Answer
There is no different. pip is a python modul. Python allows you to start modules directly from shell because it is creating files in /usr/local/bin/pip. You run the same program.