简体   繁体   English

如何为 Python 版本 3.7.2 安装 PIP?

[英]How to install PIP for Python version 3.7.2?

I'm trying to install PIP for python but can't seem to understand how.我正在尝试为 python 安装 PIP 但似乎无法理解。 I know I will probably be slated for not understanding, but I'm completely lost, If I follow the address given by python.我知道我可能会因为不理解而被定性,但我完全迷路了,如果我按照 python 给出的地址进行操作。 get-pip,py - I get sent to a random page with lots of binary data. get-pip,py - 我被发送到包含大量二进制数据的随机页面。 if i type that code into cmd I'm told that get is not defined or it is not an internal or external command that is recognised, I'm really stuck, any help would be appreciated!如果我将该代码键入 cmd 我被告知 get 没有定义或者它不是被识别的内部或外部命令,我真的被卡住了,任何帮助将不胜感激!

Try to install pip again using following steps:尝试使用以下步骤再次安装 pip:

  • Download get-pip.py to a folder on your computer将 get-pip.py下载到您计算机上的文件夹中
  • Then run python get-pip.py然后运行python get-pip.py
  • Verify a successful installation by opening a command prompt window and navigating to your Python installation's script directory (default is C:\Python27\Scripts).通过打开命令提示符 window 并导航到 Python 安装的脚本目录(默认为 C:\Python27\Scripts)来验证安装是否成功。 Type pip freeze from this location to launch the Python interpreter.从该位置输入 pip 冻结以启动 Python 解释器。
  • On the System Properties / Advanced tab , click Environment Variables to open User Variables and System VariablesSystem Properties / Advanced tab上,单击Environment Variables以打开User VariablesSystem Variables
  • Then add the Python installation path to Windows' PATH ENVIRONMENT VARIABLE然后将 Python 安装路径添加到 Windows 的PATH ENVIRONMENT VARIABLE
  1. You need to provide the path correctly.您需要正确提供路径。 Open cmd and then set the path for your python installed location打开 cmd 然后设置 python 安装位置的路径

EX:-前任:-

cd C:\Users\[user]\AppData\Local\Programs\Python\Python36-32
  1. Then download get-pip.py and copy to the python installed location(Above location)然后下载get-pip.py并复制到python安装位置(上面位置)

  2. Run the following command in your cmd在您的 cmd 中运行以下命令

    python get-pip.py

  3. Check Pip installed.检查 Pip 已安装。 using使用

    python -m pip -V

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

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