pycharm'pip' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
时间: 2023-10-26 11:07:08 浏览: 96
当在PyCharm中使用pip时,如果出现“'pip' 不是内部或外部命令,也不是可运行的程序或批处理文件”的报错问题,可以按照以下步骤解决:
- 找到安装Python的位置,比如我的是'C:\Python37\Scripts'。
- 添加环境变量。可以在左下角的放大镜直接搜索“环境变量”,也可以一步一步点过去:此电脑 -> 属性 -> 高级系统设置 -> 高级 -> 环境变量 -> 系统环境变量编辑 -> 路径/path -> 修改或者新加,将Python的Scripts路径添加到环境变量中。
- 确定并重启PyCharm,问题应该就会得到解决。
相关问题
pycharm里出现pip不是内部或外部命令,也不是可运行的程序或批处理文件
这个问题可能是因为你的系统环境变量没有配置正确。你可以尝试在命令行中手动执行pip命令,如果同样提示不是内部或外部命令,那么你需要将pip所在的路径添加到系统环境变量中。如果你使用的是Anaconda,可以尝试在Anaconda Prompt中执行pip命令。
pycharm中 pip 不是内部或外部命令,也不是可运行的程序
当在pycharm中输入pip安装命令时,出现“'pip' 不是内部或外部命令,也不是可运行的程序 或批处理文件”的报错问题时,这是因为pip没有被正确配置到系统环境变量中。解决方法如下:
- 检索你的计算机,在搜索框命令栏,搜索'pip.exe',回车键确定,出现这个pip程序时,复制他的路径。
- 打开控制面板,选择高级系统设置,选择环境变量。
- 选择系统变量的Path命令,点击编辑,选择新建(将pip的路径,粘贴到新建的一行里),在点击确定之后,关闭pycharm,再重启pycharm即可。 最后,在pycharm终端就可以运行pip命令了。
相关推荐
















