如何为python获取PIP
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23191910/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to get PIP for python
提问by user1998735
I am trying to install pip.py. Whenever I search for the installer, it opens to a new tab with codes in it, with nothing that I can download. What am I meant to do, am I meant to copy-paste the code into the Python interpreter? How can I get it to work for the Windows 7 32bit version?
我正在尝试安装 pip.py。每当我搜索安装程序时,它都会打开一个包含代码的新选项卡,我无法下载任何内容。我的意思是,我的意思是将代码复制粘贴到 Python 解释器中吗?我怎样才能让它适用于 Windows 7 32 位版本?
采纳答案by Ashoka Lella
You can use these binaries to install pip
or any other packages of your interest.
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip
您可以使用这些二进制文件来安装pip
您感兴趣的任何其他软件包。
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip
回答by Mulagala
Installing with source
使用源码安装
Go to this link: https://bootstrap.pypa.io/get-pip.py
转到此链接:https: //bootstrap.pypa.io/get-pip.py
Copy the contents of this file onto another new file and save it as get-pip.py (when it asks you what you want to do with the file, click Save, then copy the contents of the file onto another new file), and open your Windows Command Prompt as an admin and go to the file path and then enter (you need Internet for this) the following command,
将此文件的内容复制到另一个新文件中并将其另存为 get-pip.py(当它询问您要对该文件做什么时,单击“保存”,然后将文件内容复制到另一个新文件中),然后以管理员身份打开 Windows 命令提示符并转到文件路径,然后输入(为此需要 Internet)以下命令,
python get-pip.py install
For help on installing with different operating systems
有关安装不同操作系统的帮助
Refer to this link: http://www.pip-installer.org/en/latest/installing.html
请参阅此链接:http: //www.pip-installer.org/en/latest/installing.html
Installing with an exe file
使用 exe 文件安装
Click hereto get the file, and install it and you need to set a path to the pip directory, you will find a source folder in the C drive and you can find the pip file, then set the folder path.
点这里获取文件,安装后需要设置pip目录的路径,在C盘找到一个source文件夹就可以找到pip文件,然后设置文件夹路径。
回答by Alex Palcuie
You can use this guide to install the latest version of Python, PIP and virtualenv for any platform. http://docs.python-guide.org/en/latest/
您可以使用本指南为任何平台安装最新版本的 Python、PIP 和 virtualenv。http://docs.python-guide.org/en/latest/