How do I run pip on python for windows?

The Solution to How do I run pip on python for windows? is


Maybe you'd like try run pip in Python shell like this:

>>> import pip
>>> pip.main(['install', 'requests'])

This will install requests package using pip.


Because pip is a module in standard library, but it isn't a built-in function(or module), so you need import it.

Other way, you should run pip in system shell(cmd. If pip is in path).

~ Answered on 2015-10-18 02:09:48


Most Viewed Questions: