X-man

导航

window下从python开始安装科学计算环境

 

Numpy等Python科学计算包的安装与配置

参考:

1.下载并安装 http://www.jb51.net/article/61810.htm

 

1.安装easy_install,就是为了我们安装第三方扩展包更容易

首先下载easy_install的安装包,下载地址:
http://pypi.python.org/pypi/setuptools

在python下运行ez_setup.py

2.添加环境变量python安装地址\scripts

python的安装目录中生成scripts目录,其中有easy_install.exe

3.直接在命令行中输:easy_install 【要安装的模块】

 

另一种较简单的方法

以下是在IDLE中进行的:

Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from urllib import urlopen
>>> data = urlopen('http://peak.telecommunity.com/dist/ez_setup.py')
>>> open('ez_setup.py','wb').write(data.read())
>>> exit
Use exit() or Ctrl-Z plus Return to exit
>>>

//++++++++++++++++++++++++++++++++++++++++++++++ 分割线 +++++++++++++++++++++++++++++

以下是在windows控制台进行的:

D:\ProgramFile\Python2.7>python ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-p
y2.7.egg
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to d:\programfile\python2.7\lib\site-package
s
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install-script.py script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install.exe script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install.exe.manifest script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install-2.7-script.py script to D:\ProgramFile\Python2.7\Scripts

Installing easy_install-2.7.exe script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install-2.7.exe.manifest script to D:\ProgramFile\Python2.7\Scri
pts

Installed d:\programfile\python2.7\lib\site-packages\setuptools-0.6c11-py2.7.egg

Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

总共只需要5个命令:IDLE中4个,windows控制台中1个

 

posted on 2015-11-02 13:45  雨钝风轻  阅读(259)  评论(0编辑  收藏  举报