How to install numpy on windows using pip install?

前端 未结 8 1748
温柔的废话
温柔的废话 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:22

    First go through this link https://www.python.org/downloads/ to download python 3.6.1 or 2.7.13 either of your choice.I preferred to use python 2.7 or 3.4.4 .now after installation go to the folder name python27/python34 then click on script now here open the command prompt by left click ad run as administration. After the command prompt appear write their "pip install numpy" this will install the numpy latest version and installing it will show success comment that's all. Similarly matplotlib can be install by just typing "pip install matplotlip". And now if you want to download scipy then just write "pip install scipy" and if it doesn't work then you need to download python scipy from the link https://sourceforge.net/projects/scipy/ and install it.

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

    Install miniconda (here)

    After installed, open Anaconda Prompt (search this in Start Menu)

    Write:

    pip install numpy
    

    After installed, test:

    import numpy as np
    
    0 讨论(0)
提交回复
热议问题