How do I install SciPy on 64 bit Windows?

前端 未结 16 1441
生来不讨喜
生来不讨喜 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 13:02

    Short answer: Windows 64 bit support is still work in progress at this time. The superpack will certainly not work on a 64-bits Python (but it should work fine on a 32 bits Python, even on Windows 64 bit).

    The main issue with Windows 64 bit is that building with mingw-w64 is not stable at this point: it may be our's (NumPy developers) fault, Python's fault or mingw-w64. Most likely a combination of all those :). So you have to use proprietary compilers: anything other than the Microsoft compiler crashes NumPy randomly; for the Fortran compiler, ifort is the one to use. As of today, both NumPy and SciPy source code can be compiled with Visual Studio 2008 and ifort (all tests passing), but building it is still quite a pain, and not well supported by the NumPy build infrastructure.

    0 讨论(0)
  • 2020-11-27 13:07

    For completeness: Enthought has a Python distribution which includes SciPy; however, it's not free. Caveat: I've never used it.

    Update: This answer had been long forgotten until an upvote brought me back to it. At this time, I'll second endolith's suggestion of Anaconda, which is free.

    0 讨论(0)
  • 2020-11-27 13:07

    Try to install Python 2.6.3 over your 2.6.2 (this should also add correct Registry entry), or to register your existing installation using this script. Installer should work after that.

    Building SciPy requires a Fortran compiler and libraries - BLAS and LAPACK.

    0 讨论(0)
  • 2020-11-27 13:08

    I found this solution after days.

    Firstly, which Python version you want to install?

    If you want for Python 2.7 version:

    STEP 1:

    scipy‑0.19.0‑cp27‑cp27m‑win32.whl

    scipy‑0.19.0‑cp27‑cp27m‑win_amd64.whl

    numpy‑1.11.3+mkl‑cp27‑cp27m‑win32.whl

    numpy‑1.11.3+mkl‑cp27‑cp27m‑win_amd64.whl

    If you want for Python 3.4 version:

    scipy‑0.19.0‑cp34‑cp34m‑win32.whl

    scipy‑0.19.0‑cp34‑cp34m‑win_amd64.whl

    numpy‑1.11.3+mkl‑cp34‑cp34m‑win32.whl

    numpy‑1.11.3+mkl‑cp34‑cp34m‑win_amd64.whl

    If you want for Python 3.5 version:

    scipy‑0.19.0‑cp35‑cp35m‑win32.whl

    scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl

    numpy‑1.11.3+mkl‑cp35‑cp35m‑win32.whl

    numpy‑1.11.3+mkl‑cp35‑cp35m‑win_amd64.whl

    If you want for Python 3.6 version:

    scipy‑0.19.0‑cp36‑cp36m‑win32.whl

    scipy‑0.19.0‑cp36‑cp36m‑win_amd64.whl

    numpy‑1.11.3+mkl‑cp36‑cp36m‑win32.whl

    numpy‑1.11.3+mkl‑cp36‑cp36m‑win_amd64.whl

    Link: click

    Once finishing installation, go to your directory.

    For example, my directory:

    cd C:\Users\asus\AppData\Local\Programs\Python\Python35\Scripts>
    pip install [where/is/your/downloaded/scipy_whl.]
    

    STEP 2:

    NumPy + MKL

    From same web site based on the Python version again:

    After that use same thing again in the script folder:

    cd C:\Users\asus\AppData\Local\Programs\Python\Python35\Scripts>
    
    pip3 install [where/is/your/downloaded/numpy_whl.]
    

    And test it in the Python folder.

    Python35>python
    Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import scipy
    
    0 讨论(0)
提交回复
热议问题