[英]I accidentally uninstalled pip form python2.7, how should I install it back?
I uninstalled pip by mistake and my question is how I can install it back? 我错误地卸载了pip,我的问题是如何重新安装它? I am using windows.
我正在使用Windows。 C:>Python-2.7\\python.exe -m pip uninstall pip openpyxl
C:> Python-2.7 \\ python.exe -m pip卸载pip openpyxl
I wanted to uninstall openpyxl but I forgot to delete pip 我想卸载openpyxl,但忘了删除pip
Installing pip is a simple 2-step operation. 安装pip是一个简单的两步操作。
first, you have to get the latest version of pip installer file . 首先,您必须获取最新版本的pip安装程序文件 。
second, You have to run a python get-pip.py
on the file you have downloaded. 其次,您必须在下载的文件上运行
python get-pip.py
。
the file you download in the first step is named get-pip.py
and, when ran using python is going to download and install pip on your os. 您在第一步中下载的文件名为
get-pip.py
,使用python运行时,它将下载并在您的操作系统上安装pip。
and you can always read the documentations . 并且您可以随时阅读文档 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.