"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 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

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like