Installing NumPy and SciPy on 64-bit Windows (with Pip)

后端 未结 14 1812
傲寒
傲寒 2020-11-27 04:27

I found out that it\'s impossible to install NumPy/SciPy via installers on Windows 64-bit, that\'s only possible on 32-bit. Because I need more memory than a 32-bit installa

相关标签:
14条回答
  • 2020-11-27 04:35

    EDIT: The Numpy project now provides pre-compiled packages in the wheel format (package format enabling compiled code as binary in packages), so the installation is now as easy as with other packages.


    Numpy (as also some other packages like Scipy, Pandas etc.) includes lot's of C-, Cython, and Fortran code that needs to be compiled properly, before you can use it. This is, btw, also the reason why these Python-packages provide such fast Linear Algebra.

    To get precompiled packages for Windows, have a look at Gohlke's Unofficial Windows Binaries or use a distribution like Winpython (just works) or Anaconda (more complex) which provide an entire preconfigured environment with lots of packages from the scientific python stack.

    0 讨论(0)
  • 2020-11-27 04:37

    Best solution for this is to download and install VCforPython2.7 from https://www.microsoft.com/en-us/download/details.aspx?id=44266

    Then try pip install numpy

    0 讨论(0)
  • 2020-11-27 04:38

    Package version are very important.

    I found some stable combination that works on my Windows10 64 bit machine:

    pip install numpy-1.12.0+mkl-cp36-cp36m-win64.whl
    pip install scipy-0.18.1-cp36-cp36m-win64.whl
    pip install matplotlib-2.0.0-cp36-cp36m-win64.whl
    

    Source.

    0 讨论(0)
  • 2020-11-27 04:42

    You can download the needed packages from here and use pip install "Abc.whl" from the directory where you have downloaded the file.

    0 讨论(0)
  • 2020-11-27 04:43

    Downloading the binaries for 64-bit from http://www.lfd.uci.edu/~gohlke/pythonlibs/, and installing it directly with pip in this order:

    pip install numpy-1.12.0+mkl-cp36-cp36m-win64.whl
    pip install scipy-0.18.1-cp36-cp36m-win64.whl
    pip install matplotlib-2.0.0-cp36-cp36m-win64.whl
    

    Note that you must place command prompt in the folder where you put the .whl files after downloading them, and you must run it as administrator, worked for me on Windows 10 64-bit now python is up and running.

    0 讨论(0)
  • 2020-11-27 04:43

    If you are on windows , you wouldn't need wheel anyway! You can directly install package by downloading the 32-bit package as win32 from this link [http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy] and then move that downloaded package to cmd's current directory and open cmd and write following codepip install numpy-1.13.1+mkl-cp36-cp36m-win32.whl then do it same for scipy

    For 64-bit you need to install mingw-w64 as it is gcc and compiles numpy and scipy as precompiled status.

    Currently it works fine with 32-bit.So I had opted for win32 package both for numpy+mkl and scipy in that link.

    Hope This works! Give a try

    0 讨论(0)
提交回复
热议问题