SciPy0.11.0 (or higher) installation

Source: Internet
Author: User
Tags lapack

The Openmdao program relies on SCIPY and requires a version of 0.11.0 or more, which is a bit hard to set up. Online check can apt-get install python-scipy installation, but version only to 0.08.0 (here cannot help but to ask the source of maintenance staff hair go, if support higher, at all not a little thing). So follow the Openmdao official web-based tutorial to download the source program to compile the installation, and then enter the following several commands, presumably let Python know that the package is installed:

Cd/usr/local/lib/python2. 7/dist-packagessudofindchmod o=Rx {} \; sudo Find chmod o=r {} \;

But unfortunately no matter, my local path there is no scipy this file, in the/usr/lib/python2.7 there is, so the CD to that path as the operation, is still not. Can not help but doubt, is not updated a good version, so check python how to automatically install third-party library, get Pip and Easy_install two methods, are installed in the Apt-get, choose the PIP, first introduce three commonly used methods:

Install   ABC         install PIP uninstall  ABC       offload pip freeze               list third-party libraries and version       numbers

Unfortunately scipy is still not installed successfully. It is suspected that there are too many versions of Python installed.

Back to the dormitory with their own test, Ben only installed python2.7.3. This time did not feel rushed to act, Baidu a variety of methods, just know scipy also rely on blas,lapack,atlas these non-Python libraries (this is not the beginning should be clear?!) )。 It is said that Atlas is not good to wear, so look at SciPy's install.txt (this should also be studied before starting the installation!). ), it says sudo apt-get install python python-dev libatlas3-base-dev gcc gfortran g++ can solve all the dependent libraries, try to find no libatlas3-base-dev, Had to install a libatlas-base-dev, insurance and put Blas and Lapack installed, pip install scipy unexpectedly passed! Then install Openmdao unexpectedly also OK (hint no zmq.h, do not know what thing). In the future to install these things, first of all to understand the dependencies, the first to install the dependency of the library and then toss the other.

SciPy0.11.0 (or higher) installation

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.