【python】python path,macports,easy-install,numpy,scipy,ipython,matplotlib,集成工具
2013-01-10 20:30
459 查看
两个集成套件,包括了科学计算用到的包
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
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 ipython
sudo port install py27-ipython
二、使用easy-install,貌似这个更好,能自动添加上依赖
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 很容易就安装上了
一、使用Macportssudo 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 ipython
sudo port install py27-ipython
二、使用easy-install,貌似这个更好,能自动添加上依赖
相关文章推荐
- Windos7(32位)安装Python2.7,再加上numpy、scipy、Matplotlib、Ipython、pandas
- Python+Numpy+Scipy+Matplotlib+IPython(一)
- Python笔记-NumPy,SciPy,IPython,Matplotlib
- 在Windows Python3.4 上安装NumPy、Matplotlib、SciPy和IPython
- python3.6中安装numpy,pandas,scipy,scikit_learn,matplotlib等数据分析工具
- Windows64位下各版本Python安装numpy,SciPy,matplotlib,Ipython模块
- 【编程语言】Python 使用包管理工具pip安装模块numpy、scipy、matplotlib以及scikit-learn CentOS 7
- ubuntu 下Python pip install numpy scipy and matplotlib
- python install numpy+scipy+matplotlib
- windows+Mac下安装Python以及科学计算套装安装(scipy、numpy、matplotlib)
- linux中安装python科学计算环境-numpy、scipy、matplotlib、OpenCV...
- 在Ubuntu Linux 安装Python第三方库:NumPy,SciPy,Matplotlib, Scikit-Learn,Theao等
- python3.5下安装numpy,scipy,sklearn,pandas,matplotlib,jieba,requests
- python如何安装Numpy、SciPy、MatPlotLib
- Python包numpy、Matplotlib、SciPy在64位Windows上的安装
- Mac下安装eclipse+python+pydev+numpy+matplotlib
- Ubuntu环境下完美安装python模块numpy,scipy,matplotlib
- python 机器学习的开发环境搭建(numpy,scipy,matplotlib)
- [python之数据分析] 基础篇1- Numpy,Scipy,Matplotlib 快速入门攻略
- Python3.4中的Numpy、SciPy、MatPlotLib安装与配置