在命令提示符中识别出"Pip",但在PyCharm终端中未识别出"Pip" [英] 'Pip' recognized in Command Prompt but not in PyCharm terminal

查看:774
本文介绍了在命令提示符中识别出"Pip",但在PyCharm终端中未识别出"Pip"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Windows命令提示符中运行pip时,pip -V可以正常工作,但是当我尝试在PyCharm终端中运行它时,得到'pip' is not recognized as an internal or external command, operable program or batch file.

When I try to run pip in the Windows Command Prompt, pip -V works fine, but when I try to run it in PyCharm terminal I get 'pip' is not recognized as an internal or external command, operable program or batch file.

我的路径环境变量设置为:

My Path environmental variables are set for:

C:\Users\username\AppData\Local\Programs\Python\Python37\Scripts\
C:\Users\username\AppData\Local\Programs\Python\Python37\
C:\Users\username\AppData\Roaming\Python\Python37\Scripts\
C:\Users\username\AppData\Roaming\Python\Python37\

我能想到的主要区别是PyCharm终端和项目在D:上打开,并且我的路径变量设置为C:,但是我不知道为什么会影响它.我最近卸载并重新安装了PyCharm和Python(以前的版本)(如果有帮助的话),但我明确指出不导入任何设置.

The main difference I can think of is that the PyCharm terminal and project opens on D:, and my path variables are set to C: but I don't know why that would affect it. I have recently uninstalled and reinstalled both PyCharm and Python (a previous version) if that helps, but I made it a point to not import any settings.

这是推荐答案

回答我自己的问题:当事情变得毫无意义时,请尝试将其关闭然后再打开.重新启动后问题已解决.

Answer to my own question: when things don't make sense, try turning it off and on again. Problem was fixed with a restart.

这篇关于在命令提示符中识别出"Pip",但在PyCharm终端中未识别出"Pip"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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