python is not recognized_'python pip' is not recognized as an internal or external command

A common error is: 'python' is not recognized as an internal or external command, operable program or batch file. or: 'pip' is not recognized as an internal or external command, operable program or batch file.

Luckily for you, this error is easy to solve!

###What's wrong: Windows defines commands in something called "enviroment variables", if a program isn't here, Windwos doesn't understand what you mean. ###How to solve this: If you install python, it can automatically set the correct enviroment variables. However, if you didn't enable this feature, you need to do it manually. ###How to set them manually: Step 1] Press the WindowsKey + Pause/Break (Or rightclick on "This PC" and select properties)

Step 2] Click on "Advanced system settings", a new window will appear. Now click "Enviroment Variables"

Step 3] Another window will pop up, now find "Path" and click "Edit...", then another window will pop up.

Step 4] Hit "New" and enter "C:\Python27", hit "New" again and now enter "C:\Python27\Scripts"

Step 5] Close all windows by pressing "OK" and restart the command prompt, now everything should be working fine!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值