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