[英]pip.exe missing in python scripts module
correction i edited the environment variable to path Scripts, but in the command prompt on typing the pip command it does not shows up the package installation更正我将环境变量编辑为路径脚本,但是在键入 pip 命令的命令提示符中它没有显示包安装
python\\scripts location picture python\\scripts 位置图片
While executing the pip command in the command prompt, it shows pip
is not recognized as an internal or external command, operable program or batch file.在命令提示符下执行 pip 命令时,显示pip
不是内部或外部命令、可运行程序或批处理文件。
I tried setting environment variables and all other alternative solution still I am not able to solve it.我尝试设置环境变量和所有其他替代解决方案,但我仍然无法解决它。 I recently noticed pip.exe
file missing from python/scripts module.我最近注意到 python/scripts 模块中缺少pip.exe
文件。
Is that reason to show up this error?这是显示此错误的原因吗? if it is yes, how will I install it manually?如果是,我将如何手动安装它?
You should add the full directory to the Scripts
folder to your PATH
environment variable.您应该将Scripts
文件夹的完整目录添加到PATH
环境变量中。 When you run commands in a command prompt, Windows will search through the folders listed in PATH
.当您在命令提示符中运行命令时,Windows 将搜索PATH
列出的文件夹。
Assuming you are on Windows 10:假设您使用的是 Windows 10:
PATH
variable, double click it.向下滚动并找到PATH
变量,双击它。Scripts
folder.粘贴到Scripts
文件夹的路径。pip
will be recognized.现在pip
将被识别。最后我解决了它。我使用了python 3.8.3版本。在这个版本中不是名为“Scripts”的文件夹。我只是删除这个版本并重新安装python 3.7.8版本,然后pip就在这里:D
I know this has been solved, but another way of dealing with this is to create an empty file in the 'Scripts' folder and rename it to pip.bat.我知道这已经解决了,但另一种处理方法是在“脚本”文件夹中创建一个空文件并将其重命名为 pip.bat。 Then add the following code:然后添加以下代码:
python -m pip %*
Which simply passes all the arguments of the pip command to python.它只是将 pip 命令的所有参数传递给 python。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.