"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

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

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest