【python】python path,macports,easy-install,numpy,scipy,ipython,matplotlib,整合工具

來源:互聯網
上載者:User

兩個整合套件,包括了科學計算用到的包

1、python(x,y) 一看名字就是用來做科學計算的 甚至將Eclipse 和qt都包括進來了
地址

http://code.google.com/p/pythonxy/

包括如下python組件

Python/xy/xydoc/PyQt/QtHelp/PyQwt/PyQwt3D/PyGTK/wxPython/NumPy/SciPy/numexpr/Matplotlib/PIL/IPython/Pyreadline/SetupTools/ETS/VTK/ITK/pydicom/VPython/PyOpenGL/OpenCV/SymPy/cvxopt/NetworkX/MDP/PyTables/h5py/ReportLab/pyExcelerator/GDAL/PP/Pywin32/pyvisa/PyParallel/PySerial/Cython/Pyrex/py2exe/Sphinx/docutils/jinja/docutils/pygments/docutils/Epydoc/nose/pylint/winpdb

2、EPD(Enthought Python Distribution) 沒有整合式開發環境 但常用的包都有 雖然不是免費版 不過下載時可以選擇學術選項 和免費版沒區別
地址

http://enthought.com/products/epd.php

組件列表

altgraph/argparse/basemap/CherryPy/cmake/configobj/coverage/Cython/docutils/Enstaller/EPD_Py25/epydoc/ETPCore/ETPLib/ETS/foolscap/fpconst/freetype/gadfly/Graphviz/grin/hdf4/hdf5/ipython/Jinja/lapack_lite/libpng/libxml2/libxslt/lxml/matplotlib/mingw/modulegraph/mpi4py/mpich2/MySQL-python/netcdf/networkx/nose/numarray/numpy/openssl/PIL/ply/portaudio/pyAudio/pycdf/pycrypto/pydot/pygarrayimage/pyglet/Pygments/pyhdf/PyOpenGL/pyOpenSSL/pyparsing/pyproj/Pyrex/pyserial/pysvn/pytables/python_dateutil/pytz/PyVISA/pywin32/PyXML/ReportLab/ScientificPython/scikits.rsformats/scipy/scite/scons/simplejson/soaplib/SOAPpy/Sphinx/SQLAlchemy/swig/sympy/testoob/Twisted/VTK/windows_extras/wxPython/ZConfig/zdaemon/zlib/ZODB3/zope.interface/zope.proxy/zope.testing

===============================================

ide:

1、wing ide

2、eclipse

===============================================

A、查看python path:

import sys

sys.path或:for line in sys.path: print line

 

mac上安裝python和擴充包

先說幾個工具

1、Macports:mac上的安裝管理軟體的工具,類似linux上的apt-get和yum

sudo port install ***

port search ***  很好用

2、easy-install :python擴充包管理工具,可以很容易的安裝需要的包

http://www.yancong.su/2012/08/208

通過MacPorts添加Python, NumPy, SciPy, PyLab  很容易就安裝上了

一、使用Macports

sudo port install py27-numpy

sudo port install py27-scipy

sudo port install py27-matplotlib

NumPy is installed in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy

測試Pylab:

python
import pylab
pylab.plot([1,2,3,4])
pylab.show()

或這樣測試:

>>>import numpy as np>>>np.test('full')>>>import scipy>>>scipy.test()  //我安裝好後,test()發現有些沒通過,有些錯誤。。。無語test()的輸出裡面能看到numpy和scipy的安裝包的位置 話說我的ipython也是這樣安裝上的(貌似有沒裝好。。fuck)port search ipythonsudo port install py27-ipython 二、使用easy-install,貌似這個更好,能自動添加上依賴
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.