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

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-30 12:54   152   0

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,

解决方案

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'

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP