在命令提示符中识别出"Pip",但在PyCharm终端中未识别出"Pip" [英] 'Pip' recognized in Command Prompt but not in PyCharm terminal
问题描述
当我尝试在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.