How to install numpy on windows using pip install?

前端 未结 8 1747
温柔的废话
温柔的废话 2020-12-05 13:34

I want to install numpy using pip install numpy command but i get follwing error:

RuntimeError: Broken toolchain: cannot link a simple C program         


        
相关标签:
8条回答
  • 2020-12-05 14:04

    Frustratingly the Numpy package published to PyPI won't install on most Windows computers https://github.com/numpy/numpy/issues/5479

    Instead:

    1. Download the Numpy wheel for your Python version from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
    2. Install it from the command line pip install numpy-1.10.2+mkl-cp35-none-win_amd64.whl
    0 讨论(0)
  • 2020-12-05 14:07

    Check installation of python 2.7 than install/reinstall pip which described here than open command line and write

    pip install numpy
    

    or

    pip install scipy
    

    if already installed try this

    pip install -U numpy
    
    0 讨论(0)
  • 2020-12-05 14:09

    I had the same problem. I decided in a very unexpected way. Just opened the command line as an administrator. And then typed:

    pip install numpy
    
    0 讨论(0)
  • 2020-12-05 14:17
    py -m pip install numpy
    

    Worked for me!

    0 讨论(0)
  • 2020-12-05 14:19

    As of March 2016, pip install numpy works on Windows without a Fortran compiler. See here.

    pip install scipy still tries to use a compiler.

    July 2018: mojoken reports pip install scipy working on Windows without a Fortran compiler.

    0 讨论(0)
  • 2020-12-05 14:22

    Installing extension modules can be an issue with pip. This is why conda exists. conda is an open-source BSD-licensed cross-platform package manager. It can easily install NumPy.

    Two options:

    • Install Anaconda here
    • Install Miniconda here and then go to a command-line and type conda install numpy (make sure your PATH includes the location conda was installed to).
    0 讨论(0)
提交回复
热议问题