简体   繁体   English

如何在 windows 上安装 pip

[英]how to install pip on windows

I've tried installing pip on windows using instructions from https://www.liquidweb.com/kb/install-pip-windows/ , (which I've listed below), but when I run pip -V, I keep getting 'pip' is not recognized as an internal or external command, operable program or batch file. I've tried installing pip on windows using instructions from https://www.liquidweb.com/kb/install-pip-windows/ , (which I've listed below), but when I run pip -V, I keep getting 'pip' is not recognized as an internal or external command, operable program or batch file. Does anyone know what to do?有谁知道该怎么做?

These were the instructions I followed:这些是我遵循的指示:

  1. Download get-pip.py to a folder on your computer.将 get-pip.py 下载到您计算机上的文件夹中。 (right clicked and selected save link as...) (右键单击并选择将链接另存为...)
  2. Open a command prompt and navigate to the folder containing get-pip.py.打开命令提示符并导航到包含 get-pip.py 的文件夹。
  3. Run the following command: python get-pip.py运行以下命令:python get-pip.py
  4. Pip is now installed! Pip 现已安装!

You can verify that Pip was installed correctly by opening a command prompt and entering the following command:您可以通过打开命令提示符并输入以下命令来验证 Pip 是否已正确安装:

pip -V pip -V

I recommend you to uninstall python and then reinstall it again.我建议您卸载 python 然后重新安装。 In the installation window, use custom installation and check all the option which includes pip and also check to add pip to your environment variables.在安装 window 中,使用自定义安装并检查包括 pip 在内的所有选项,并检查将 pip 添加到您的环境变量中。

In Windows 10, you need to add pip to the PATH.在 Windows 10 中,需要将pip添加到 PATH 中。

This post should solve your issue: 'pip' is not recognized as an internal or external command这篇文章应该可以解决您的问题: “pip”不被识别为内部或外部命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM