天天看点

装了python3但在cmd里不识别,Pip无法识别安装命令(Windows 7,Python 3.3)

装了python3但在cmd里不识别,Pip无法识别安装命令(Windows 7,Python 3.3)

I am trying to install Python programs using Pip. Python recognizes the pip module, but none of the pip commands. Has anyone else had this problem?

For example,

装了python3但在cmd里不识别,Pip无法识别安装命令(Windows 7,Python 3.3)

解决方案

To use 'pip' in windows you have to change the directory to the folder 'pip' is installed in and then execute it.

In Python 2.7 'pip' and 'easy_install' are in 'Python27\Scripts' as far as i remember 'pip' should be in 'Python3x\Lib\site-packages'. Just navigate your cmd to the right folder with the command 'cd'.

open cmd

type 'cd C:\Python3x\Lib\site-packages' with x replaced by your version.

type 'pip.exe install requests' or 'easy_install.exe requests'