Python Scientific Computing Development environment Construction

Source: Internet
Author: User

For scientific computing The Python language is really amazing!.

When I first started using NumPy and scipy these modules, it was convenient to use a software called Enthought directly. Enthought is a software company located in Austin, the capital of the United States Texas State, which uses python primarily for the development of scientific computing tools. Enthought contains a lot of libraries, do not need your own installation can be used directly.

But later thought that enthought inside so many modules also cannot use, wants oneself installs the python from the beginning, installs a certain block oneself.

Let me illustrate my installation process by installing a 32-bit Python2.7 under 64-bit Windows7.

First download the latest Python installation package on the official website, I downloaded the 32-bit Python2.7.10, directly click on the installation just fine. Python2.7.10 and the integrated Easy_install and PIP do not need to be installed separately.

For NumPy, scipy, and matplotlib installations, because these modules are installed under Windows, the VC + + compiler for visual Studio2008 is required, but my computer is installed with Visual Studio2010, So using PIP installation has always been an error.

I tried to install VCForPython2.7 (a tool that Microsoft can install the Python2.7 module perfectly for Python2.7 users without installing VS2008), but I installed it.
Later also try to modify the environment variables, modify ... \python27\lib\distutils\msvc9compiler.py the compiled part of the variables, the results are useless.

As a result of this problem for a whole afternoon, too wasted time. If your dear friend, you also encounter this situation, go directly to SourceForge to download the special Windows-specific installation package, directly Click Install just fine . Anyway I was not successful with PIP installation.

Here is the installation of Ipython, this direct use pip install Ipython just fine. However, after installing the TAB key is not prompted. This is because you also need to install a ReadLine package and install it using pip install Pyreadline . After the installation is complete, the Ipython can be used perfectly.

After the installation, I want to use matplotlib, I use the command line Ipython–pylab, the result is importerror:matplotlib requires pyparsing error.
Solution install pyparsing, command pip install pyparsing.

To tell the truth, such a toss is not as straightforward as installing a enthought convenient, but it is inside the bundle of things too much!

I hope this article is helpful to friends who want to learn the scientific calculation of Python!

Python Scientific Computing Development environment Construction

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.