简体   繁体   English

python脚本模块中缺少pip.exe

[英]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:

  1. Press the start button then search "Environment Variables"按开始按钮,然后搜索“环境变量”
  2. Click the "Edit Environment Variables" option.单击“编辑环境变量”选项。
  3. Click the "Environment Variables" button in the box that pops up.在弹出的框中点击“环境变量”按钮。
  4. Scroll down and find the PATH variable, double click it.向下滚动并找到PATH变量,双击它。
  5. Click "New"点击“新建”
  6. Paste in the path to the Scripts folder.粘贴到Scripts文件夹的路径。
  7. Save it and exit, then restart the terminal.保存并退出,然后重新启动终端。 Now 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.

相关问题 来自Windows 10上的Python的Pip.exe - Pip.exe from Python on Windows 10 PIP 20.1 - 警告:脚本 pip.exe、pip3.7.exe 和 pip3.exe - PIP 20.1 - WARNING: The scripts pip.exe, pip3.7.exe and pip3.exe 如何从C:\Python37\Scripts创建类似于pip.exe、jupyter.exe等的a.exe? - How to create a .exe similar to pip.exe, jupyter.exe, etc. from C:\Python37\Scripts? 警告:脚本 pip.exe、pip3.8.exe 和 pip3.exe 安装在不在 PATH 上的“...”中 - WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in '...' which is not on PATH 像 pip.exe 这样的可执行文件是否需要 python 才能工作? - Do executables like pip.exe require python to work? python,conda:错误:由于 OSError 无法安装软件包:[WinError 5] 访问被拒绝:'d:\\\\anaconda3\\\\envs\\\\python39\\\\scripts\\\\pip.exe' - python, conda: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'd:\\anaconda3\\envs\\python39\\scripts\\pip.exe' 找不到 pip.exe 文件 - Cant find the pip.exe file pip.exe 和其他在启动时关闭 - pip.exe and others close on startup pip.exe已停止工作 - pip.exe has stopped working python如何在Windows系统中构建像scrapy.exe,pip.exe,virtualenv.exe这样的exe文件? - python how to build an exe file like scrapy.exe, pip.exe, virtualenv.exe in windows system?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM