How do I install SciPy on 64 bit Windows?

前端 未结 16 1440
生来不讨喜
生来不讨喜 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:48

    I was getting this same error on a 32-bit machine. I fixed it by registering my Python installation, using the script at:

    http://effbot.org/zone/python-register.htm

    It's possible that the script would also make the 64-bit superpack installers work.

    0 讨论(0)
  • 2020-11-27 12:49

    Unofficial 64-bit installers for NumPy and SciPy are available at http://www.lfd.uci.edu/~gohlke/pythonlibs/

    Make sure that you download & install the packages (aka. wheels) that match your CPython version and bitness (ie. cp35 = Python v3.5; win_amd64 = x86_64).

    You'll want to install NumPy first; From a CMD prompt with administrator privileges for a system-wide (aka. Program Files) install:

    C:\>pip install numpy‑<version>+mkl‑cp<ver-spec>‑cp<ver-spec>m‑<cpu-build>.whl
    

    Or include the --user flag to install to the current user's application folder (Typically %APPDATA%\Python on Windows) from a non-admin CMD prompt:

    C:\>pip install --user numpy‑<version>+mkl‑cp<ver-spec>‑cp<ver-spec>m‑<cpu-build>.whl
    

    Then do the same for SciPy:

    C:\>pip install [--user] scipy‑<version>‑cp<ver-spec>‑cp<ver-spec>m‑<cpu-build>.whl
    

    Don't forget to replace <version>, <ver-spec>, and <cpu-build> appropriately if you copy & paste any of these examples. And also that you must use the numpy & scipy packages from the ifd.uci.edu link above (or else you will get errors if you try to mix & match incompatible packages -- uninstall any conflicting packages first [ie. pip list]).

    0 讨论(0)
  • 2020-11-27 12:53

    Another alternative: http://www.pythonxy.com/

    Free and includes lots of stuff meant to work together smoothly.

    This person says

    Did you try linux.pythonxy ? ( http://linux.pythonxy.com ).

    It's 64 bit ready ...

    Though I'm not quite sure what that means.

    Update:

    This appears to be dead. I use Anaconda now, which has 32-bit or 64-bit installers.

    0 讨论(0)
  • 2020-11-27 12:57

    You can either download a scientific Python distribution. One of the ones mentioned here: https://scipy.org/install.html

    Or pip install from a whl file here if the above is not an option for you.

    http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

    0 讨论(0)
  • I haven't tried it, but you may want to download this version of Portable Python. It comes with Scipy-0.7.0b1 running on Python 2.5.4.

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

    WinPython is an open-source distribution that has 64-bit NumPy and SciPy.

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