Pip无法识别安装命令(Windows 7,Python 3.3) [英] Pip is not recognizing the install command (Windows 7, Python 3.3)

查看:798
本文介绍了Pip无法识别安装命令(Windows 7,Python 3.3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Pip安装Python程序. Python可以识别pip模块,但不能识别pip命令.还有其他人有这个问题吗?

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?

例如,

推荐答案

要在Windows中使用"pip",必须将目录更改为安装了"pip"文件夹后再执行.

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

在Python 2.7中,据我记得"pip"应位于"Python3x \ Lib \ site-packages"中,因此"pip"和"easy_install"位于"Python27 \ Scripts"中.只需使用命令"cd"将cmd导航到正确的文件夹即可.

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'

这篇关于Pip无法识别安装命令(Windows 7,Python 3.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆