您的位置:首页 > 编程语言 > Python开发

Windows 7 安装64位 Python 2.7.3 开发环境

2013-03-04 00:00 483 查看
<ol> <li><strong>安装Python 2.7.3</strong> <br />下载<a href="http://python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi">http://python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi</a> <br />安装到 D:\Python\python27 目录下面 <br />设置 d:\Python\python27 和 D:\Python\Python27\Scripts 到环境变量Path中 <br /> <br clear="all" /></li> <li><strong>安装Setuptools</strong> <br />下载<a title="http://peak.telecommunity.com/dist/ez_setup.py" href="http://peak.telecommunity.com/dist/ez_setup.py">http://peak.telecommunity.com/dist/ez_setup.py</a> 到 D:\Python <br />安装,进入命令行 <br /> <div class="cnblogs_code" style="border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; border-bottom: #cccccc 1px solid; padding-bottom: 5px; padding-top: 5px; padding-left: 5px; border-left: #cccccc 1px solid; padding-right: 5px; background-color: #f5f5f5"> <pre>d:\Python>python ez_setup.py</pre>
</div>

<br clear="all" /></li>

<li><strong>安装 pip</strong>

<br />下载 <a href="https://raw.github.com/pypa/pip/master/contrib/get-pip.py">https://raw.github.com/pypa/pip/master/contrib/get-pip.py</a> 到 D:\Python

<br />安装 ,进入命令行

<br />

<div class="cnblogs_code" style="border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; border-bottom: #cccccc 1px solid; padding-bottom: 5px; padding-top: 5px; padding-left: 5px; border-left: #cccccc 1px solid; padding-right: 5px; background-color: #f5f5f5">
<pre>d:\Python>python get-pip.py</pre>
</div>

<br clear="all" /></li>

<li><strong>安装 virtualenv</strong>

<br />由于已经安装了pip,我们就可以直接在命令行下用pip install virtualenv进行安装了。

<br />安装,进入命令行

<br />

<div class="cnblogs_code" style="border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; border-bottom: #cccccc 1px solid; padding-bottom: 5px; padding-top: 5px; padding-left: 5px; border-left: #cccccc 1px solid; padding-right: 5px; background-color: #f5f5f5">
<pre>d:\Python>pip install virtualenv</pre>
</div>

</li>
</ol>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: