python - How to run Pip commands from CMD -


as understand, python 2.7.9 comes pip installed, when try execute pip command cmd (windows) following error:

'pip' not recognized internal or external command, operable program or batch file.

when type python following, suggests has been installed correctly:

python 2.7.9 (default, dec 10 2014, 12:24:55) [msc v.1500 32 bit (intel)] on win32

type "help", "copyright", "credits" or "license" more information.

i did need add environmental variables python part working on cmd:

  • add environment variable path: "c:\python27\"

  • define system variable pythonpath: "c:\python27\"

i cannot find pip folder within python directory, there folder called "ensurepip" in c:\python27\lib\.

does know how can pip commands start working in cmd?

little side note new python didn't figure out theirself: this should automatic when installing python, in case, note run python using python command in windows' cmd must first add path environment variable, explained here.


to execute pip, first of make sure have it, type in cmd:

> python >>> import pip >>> 

and should proceed no error. otherwise, if fails, can here see how install it. sure you've got pip, can run cmd python using -m (module) parameter, this:

> python -m pip <command> <args> 

where <command> pip command want run, , <args> relative arguments, separated spaces.

for example, install package:

> python -m pip install <package-name> 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -