Install numpy,scipy on Windows

Source: Internet
Author: User

Digression: Originally in accordance with the official Python design, you can directly use Easy_install or PIP online installation of various components, but the domestic network you know! Be honest, download the file locally and install it.

1, install the Windows Python 2, the current 2.7 is 2.7.12,3.5 is 3.5.2

It is recommended that you install a new Python (Python 2 >=2.7.9 or Python 3 >=3.4 already contains the PIP installation, which is used in Python)

Https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi

https://www.python.org/Other installation versions please see

2. Download the NumPy Package

I am using a 32-bit version: NUMPY-1.11.2-CP27-NONE-WIN32.WHL

Z:\setup\python>pip Install "NUMPY-1.11.2+MKL-CP27-CP27M-WIN32.WHL"
Processing Z:\SETUP\PYTHON\NUMPY-1.11.2+MKL-CP27-CP27M-WIN32.WHL
Installing collected Packages:numpy
Successfully installed NUMPY-1.11.2+MKL

Http://www.lfd.uci.edu/~gohlke/pythonlibs/g7ckv9dk/numpy-1.11.2+mkl-cp27-cp27m-win32.whl

Since subsequent we need to use SCIPY package is downloaded from www.lfd.uci.edu, if use NumPy official website of the installation file, is import scipy time back Error

Importerror:cannot Import Name Numpy_mkl

Resolution: Uninstall the official version, and then reinstall, uninstall: Pip uninstall ***.WHL Follow the instructions.

3, Installation scipy

The installation was unsuccessful yesterday and later saw a connection page in its installation help:

Http://www.lfd.uci.edu/~gohlke/pythonlibs/has a variety of packaged WHL files here, including the scipy windows we need

HTTP://WWW.LFD.UCI.EDU/~GOHLKE/PYTHONLIBS/G7CKV9DK/SCIPY-0.18.1-CP27-CP27M-WIN32.WHL corresponds to the python2.7 32-bit version of Windows, For other versions, see the links on this page

Z:\setup\python>pip Install SCIPY-0.18.1-CP27-CP27M-WIN32.WHL
Processing Z:\SETUP\PYTHON\SCIPY-0.18.1-CP27-CP27M-WIN32.WHL
Installing collected packages:scipy
Successfully installed scipy-0.18.1

Installation Instructions page for http://www.scipy.org/install.html scipy

4. Check the installation results

C:\>python--versionpython 2.7.12c:\>pythonpython 2.7.12 (v2.7.12:d33e0cf91556, June, 15:19:22) [MSC v.1500 [Intel] on Win32type ' help ', ' copyright ', ' credits ' or ' license ' for more information.>>> from NumPy impo RT *>>> Mymat=mat (Random.rand (3,3)) >>> Mymat.imatrix ([[1.18285611, -0.53249716,  0.20409766],        [1.42989524,  4.1896879, -4.68168819],        [ -0.73309029, -0.1018547,  1.34113631]]) >>>

4.1 Checking the Python version

4.2 Running Python

4.3 Importing NumPy libraries

4.4 Generating a 3,3 matrix

4.5 Calculating its inverse matrix

Install numpy,scipy on Windows

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.