简体   繁体   English

在python中安装pip有什么问题?

[英]What is the problem installing pip in python?

I just want to install pip in my system.我只想在我的系统中安装 pip。 Why is it showing this message?为什么会显示此消息?

在此处输入图片说明

What to do?该怎么办? How to install it?如何安装?

For assure I have installed python 3.9 which includes pip but didn't recognize it.为了确保我已经安装了 python 3.9,其中包括 pip 但没有识别它。

在此处输入图片说明

By command python -m pip --version , shows me:通过命令python -m pip --version ,显示我:

在此处输入图片说明

My installation path => C:\\Python39我的安装路径 => C:\\Python39

在此处输入图片说明

You need to be in the same path where you have put your get-pip.py file.您需要位于放置get-pip.py文件的同一路径中。

Please try the command below请尝试以下命令

python get-pip.py --no-index --find-links=/local/copies

You can try doing it through conda as well.您也可以尝试通过 conda 执行此操作。 You can install anaconda and then using conda you can install pip您可以安装 anaconda,然后使用 conda 安装 pip

That way you'll be able to make use of the virtual environments as well!这样您也可以使用虚拟环境!

Once you install anaconda from https://www.anaconda.com/products/individual you can use the command below to install pip!https://www.anaconda.com/products/individual安装 anaconda 后,您可以使用以下命令安装 pip!

conda install pip

Try these steps试试这些步骤

  1. Download get-pip.py file.下载get-pip.py文件。 You can download it from here你可以从这里下载
  2. Open command prompt and navigate to the folder in which you have downloaded get-pip.py file.打开命令提示符并导航到您下载get-pip.py文件的文件夹。
  3. Run python get-pip.py or py get-pip.py运行python get-pip.pypy get-pip.py

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

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