 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http://wiki.sseuu.com/index.php?action=history&amp;feed=atom&amp;title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8</id>
		<title>Python pip 安装与使用 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sseuu.com/index.php?action=history&amp;feed=atom&amp;title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8"/>
		<link rel="alternate" type="text/html" href="http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;action=history"/>
		<updated>2026-04-07T01:50:00Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;diff=20665&amp;oldid=prev</id>
		<title>2019年11月19日 (二) 00:58 江南仁</title>
		<link rel="alternate" type="text/html" href="http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;diff=20665&amp;oldid=prev"/>
				<updated>2019-11-19T00:58:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2019年11月19日 (二) 00:58的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot; &gt;第16行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第16行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;如果你还未安装，则可以使用以下方法来安装：&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;如果你还未安装，则可以使用以下方法来安装：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py&amp;#160;  # 下载安装脚本&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/nowiki&amp;gt; &lt;/ins&gt;&amp;#160; # 下载安装脚本&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ sudo python get-pip.py&amp;#160; &amp;#160; # 运行安装脚本&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; $ sudo python get-pip.py&amp;#160; &amp;#160; # 运行安装脚本&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;注意：用哪个版本的 Python 运行安装脚本，pip 就被关联到哪个版本，如果是 Python3 则执行以下命令：&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;注意：用哪个版本的 Python 运行安装脚本，pip 就被关联到哪个版本，如果是 Python3 则执行以下命令：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>江南仁</name></author>	</entry>

	<entry>
		<id>http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;diff=20661&amp;oldid=prev</id>
		<title>2019年11月18日 (一) 22:14 江南仁</title>
		<link rel="alternate" type="text/html" href="http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;diff=20661&amp;oldid=prev"/>
				<updated>2019-11-18T22:14:49Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2019年11月18日 (一) 22:14的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{4}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{4&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}{{思维软件设计02&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Python pip 安装与使用&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Python pip 安装与使用&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>江南仁</name></author>	</entry>

	<entry>
		<id>http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;diff=20660&amp;oldid=prev</id>
		<title>江南仁：创建页面，内容为“{{4}} Python pip 安装与使用  pip 是 Python 包管理工具，该工具提供了对Python 包的查找、下载、安装、卸载的功能。  目前如果你...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.sseuu.com/index.php?title=Python_pip_%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8&amp;diff=20660&amp;oldid=prev"/>
				<updated>2019-11-18T22:14:19Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“{{4}} Python pip 安装与使用  pip 是 Python 包管理工具，该工具提供了对Python 包的查找、下载、安装、卸载的功能。  目前如果你...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{4}}&lt;br /&gt;
Python pip 安装与使用&lt;br /&gt;
&lt;br /&gt;
pip 是 Python 包管理工具，该工具提供了对Python 包的查找、下载、安装、卸载的功能。&lt;br /&gt;
&lt;br /&gt;
目前如果你在 python.org 下载最新版本的安装包，则是已经自带了该工具。&lt;br /&gt;
&lt;br /&gt;
Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。&lt;br /&gt;
&lt;br /&gt;
pip 官网：https://pypi.org/project/pip/&lt;br /&gt;
&lt;br /&gt;
你可以通过以下命令来判断是否已安装：&lt;br /&gt;
&lt;br /&gt;
pip --version&lt;br /&gt;
&lt;br /&gt;
如果你还未安装，则可以使用以下方法来安装：&lt;br /&gt;
&lt;br /&gt;
 $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py   # 下载安装脚本&lt;br /&gt;
 $ sudo python get-pip.py    # 运行安装脚本&lt;br /&gt;
注意：用哪个版本的 Python 运行安装脚本，pip 就被关联到哪个版本，如果是 Python3 则执行以下命令：&lt;br /&gt;
&lt;br /&gt;
 $ sudo python3 get-pip.py    # 运行安装脚本。&lt;br /&gt;
一般情况 pip 对应的是 Python 2.7，pip3 对应的是 Python 3.x。&lt;br /&gt;
&lt;br /&gt;
部分 Linux 发行版可直接用包管理器安装 pip，如 Debian 和 Ubuntu：&lt;br /&gt;
 sudo apt-get install python-pip&lt;br /&gt;
&lt;br /&gt;
'''pip 最常用命令'''&lt;br /&gt;
&lt;br /&gt;
显示版本和路径&lt;br /&gt;
 pip --version&lt;br /&gt;
获取帮助&lt;br /&gt;
 pip --help&lt;br /&gt;
升级 pip&lt;br /&gt;
 pip install -U pip&lt;br /&gt;
如果这个升级命令出现问题 ，可以使用以下命令：&lt;br /&gt;
 sudo easy_install --upgrade pip&lt;br /&gt;
安装包&lt;br /&gt;
 pip install SomePackage              # 最新版本&lt;br /&gt;
 pip install SomePackage==1.0.4       # 指定版本&lt;br /&gt;
 pip install 'SomePackage&amp;gt;=1.0.4'     # 最小版本&lt;br /&gt;
比如我要安装 Django。用以下的一条命令就可以，方便快捷。&lt;br /&gt;
 pip install Django==1.7&lt;br /&gt;
升级包&lt;br /&gt;
 pip install --upgrade SomePackage&lt;br /&gt;
升级指定的包，通过使用==, &amp;gt;=, &amp;lt;=, &amp;gt;, &amp;lt; 来指定一个版本号。&lt;br /&gt;
&lt;br /&gt;
卸载包&lt;br /&gt;
 pip uninstall SomePackage&lt;br /&gt;
搜索包&lt;br /&gt;
 pip search SomePackage&lt;br /&gt;
显示安装包信息&lt;br /&gt;
 pip show &lt;br /&gt;
查看指定包的详细信息&lt;br /&gt;
 pip show -f SomePackage&lt;br /&gt;
列出已安装的包&lt;br /&gt;
 pip list&lt;br /&gt;
查看可升级的包&lt;br /&gt;
 pip list -o&lt;br /&gt;
'''注意事项'''&lt;br /&gt;
&lt;br /&gt;
如果 Python2 和 Python3 同时有 pip，则使用方法如下：&lt;br /&gt;
&lt;br /&gt;
Python2：&lt;br /&gt;
 python2 -m pip install XXX&lt;br /&gt;
Python3:&lt;br /&gt;
 python3 -m pip install XXX&lt;/div&gt;</summary>
		<author><name>江南仁</name></author>	</entry>

	</feed>