[Python] Python path, macports, easy-install, numpy, scipy, ipython, matplotlib, integration tool

Source: Internet
Author: User

Two Integration kits, including packages for scientific computing

1. Python (X, Y) is used for scientific computing and even includes eclipse and QT.
Address

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

Including the following Python Components

Python/XY/xydoc/pyqt/examples/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/sphments/docutils/Jinja/docutils/pygments/docutils/epydoc/nose/pylint/winpdb

2. EPD (enthought Python distribution) is not integrated with the development environment, but common packages are available. Although not the free version, you can select academic options when downloading and the free version.
Address

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

Component list

Altgraph/argparse/basemap/cherrypy/cmake/configobj/coverage/cython/logs/enstaller/logs/epydoc/etpcore/etplib/ets/foolscap/fpconst/FreeType/Gadfly/graphviz/ grin/hdf4/hdf5/ipython/Jinja/lapack_lite/libpng/libxml2/libxslt/lxml/matplotlib/mingw/modulegraph/modules/mpich2/MySQL-Python/netcdf/networkx/nose/ numarray/numpy/OpenSSL/PIL/Ply/portaudio/pyaudio/pycdf/tests/pydot/tests/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/logs/swig/sympy/testoob/twisted/VTK/logs/wxpython/zconfig/logs/zlib/zodb3/ zope. interface/Zope. proxy/Zope. testing

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

IDE:

1. Wing ide

2. Eclipse

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

A. View Python path:

Import sys

SYS. path or: For line in SYS. Path: print line

 

Install Python and extension packages on Mac

Several tools

1. macports: A Tool for installing management software on Mac, similar to Apt-Get and Yum on Linux

Sudo port install ***

Port search *** is very useful

2. Easy-install: Python extension package management tool, which can easily install required packages

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

Using macports to add python, numpy, scipy, and pylab is easy to install.

1. Use 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

Test pylab:

Python
Import pylab
Pylab. Plot ([1, 2, 3, 4])
Pylab. Show ()

Or test as follows:

>>> Import numpy as NP >>> NP. test ('full') >>> import scipy >>>> scipy. test () // After I installed it, test () found some failed, some errors... In the output of the test () language, you can see the location of the numpy and scipy installation packages. The installation of ipython is also like this (it seems that it is not installed properly .. Fuck) Port search ipythonsudo port install py27-ipython 2, use easy-install, it seems better, can automatically add the dependency
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.