How do I install SciPy on 64 bit Windows?

前端 未结 16 1500
生来不讨喜
生来不讨喜 2020-11-27 12:07

How do I install SciPy on my system?

For the NumPy part (that SciPy depends on) there is actually an installer for 64 bit Windows: numpy-1.3.0.win-amd64-py2.6.msi (i

16条回答
  •  甜味超标
    2020-11-27 12:46

    I have a 32-bit Python 3.5 on a 64-bit Windows 8.1 machine. I just tried almost every way I can find on Stack Overflow and no one works!

    Then on here I found it. It says:

    SciPy is software for mathematics, science, and engineering.

    Requires numpy+mkl.

    Install numpy+mkl before installing scipy.

    mkl matters!! But nobody said anything about that before!

    Then I installed mkl:

    C:\Users\****\Desktop\a> pip install mkl_service-1.1.2-cp35-cp35m-win32.whl
    Processing c:\users\****\desktop\a\mkl_service-1.1.2-cp35-cp35m-win32.whl
    Installing collected packages: mkl-service
    Successfully installed mkl-service-1.1.2
    

    Then I installed SciPy:

    C:\Users\****\Desktop\a>pip install scipy-0.18.1-cp35-cp35m-win32.whl
    Processing c:\users\****\desktop\a\scipy-0.18.1-cp35-cp35m-win32.whl
    Installing collected packages: scipy
    Successfully installed scipy-0.18.1
    

    It worked~ yeah :)

    A tip: You can just google "whl_file_name.whl" to know where to download it~ :)

    Update:

    After all these steps you will find that you still can not use SciPy in Python 3. If you print "import scipy" you will find there are error messages, but don't worry, there is only one more thing to do. Here ——just comment out that line, simple and useful.

    from numpy._distributor_init import NUMPY_MKL
    

    I promise that it is the last thing to do :)

    PS: Before all these steps, you better install NumPy first. That's very simple using this command:

    pip install numpy
    

提交回复
热议问题