I first tried
pip install pynputThen I got this error:
ERROR: Could not find a version that satisfies the requirement pynput (from versions: none)
ERROR: No matching distribution found for pynputThen I tried:
python -m pip install pynputThen I got this:
Installing collected packages: python-xlib, pynput
Successfully installed pynput-1.5.0 python-xlib-0.25So 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
11 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.