Python Scientific Computing (ii) Building under Windows Development environment (when installing with PIP unable to find Vcvarsall.bat)

Source: Internet
Author: User

for Scientific Computing Python The language is really Amazing !

Method One: Directly installs the integrated good software

just started usingNumPy,scipythese modules, the diagram is convenient to use a directly calledEnthoughtthe software. Enthoughtis a software company located in Austin, the capital of Texas State, USA, mainly usingPythonengaged in the development of scientific computing tools. EnthoughtIt contains a lot of libraries, and you can use them without having to install them yourself.
Actually, there's a lot .Pythonintegrated software for scientific computing, such asPython (x, y)and theWinpython, personal feelingWinpythonis still good, it contains not too many things,EnthoughtThere are too many modules in it!

But then I thought Enthought There are so many modules in it that you want to install from scratch. Python , install a block yourself.

method Two: The use of the official supply of the module package EXE File Installation

64 bit install 32 bit python2.7 For example, explain my installation process (say some of the problems I encountered).

first download the latest python install package, I downloaded 32 bit python2.7.10 , just click on install. python2.7.10 and integrated easy_install and pip You don't need to install it alone.

for numpy , scipy and matplotlib installation because these modules are in the windows visual Studio2008 vc++ compiler, but my computer is installed visual Studio2010 pip installation has been wrong.

I tried to install vcforpython2.7 Span style= "font-family: Microsoft Jacob Black;" >python2.7 vs2008 Span style= "font-family: the song Body;" > You can install the python2.7 module tools), But I installed it for no use.  
Span style= "font-family: Microsoft Jacob Black;" >...\python27\lib\distutils\msvc9compiler.py The result is 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 a special installation package for Windows , Just click on the installation . Anyway I was not successful with pip installation.

method Three: Use WHL Package for installation ( Unable to find Vcvarsall.bat can be tested with installation, very power-up )

That's the way I found out today,NumPy,matplotlib,scipywait, can't pass .Pipinstall directly, but download the correspondingWHLThe package is ready, then usepip Install "WHLfull path of the package"for installation,OK, done. WHLthe download URL for the package is as follows:http://www.lfd.uci.edu/~gohlke/pythonlibs/.
the most simple and convenient personal feeling is the third kind.

here is the installation 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 installation, I want to use matplotlib , I use the command line Ipython–pylab , and the results come back. Importerror:matplotlib requires pyparsing the error.
Solution Installation pyparsing , Command pip install pyparsing.

I hope this article is about wanting to learn Python Scientific computing friends are helpful!

Python Scientific Computing (ii) Building under Windows Development environment (when installing with PIP unable to find Vcvarsall.bat)

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.