Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I have installed python 3.7 on my Windows 10 os. Then I tried to install the numpy package using the pip command:

pip install numpy

I am getting the below error :

        source = func(extension, build_dir)

      File "numpy\core\setup.py", line 675, in get_mathlib_info

        raise RuntimeError("Broken toolchain: cannot link a simple C program")

    RuntimeError: Broken toolchain: cannot link a simple C program

    ----------------------------------------

Command ""c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\pcheg\\AppData\\Local\\Temp\\pip-install-7wjkw5wn\\numpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\pcheg\AppData\Local\Temp\pip-record-uhj8233f\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\pcheg\AppData\Local\Temp\pip-install-7wjkw5wn\numpy\

1 Answer

0 votes
by (108k points)

First, try to install pipwin from PyPI:

pip install pipwin

When that's installed, you can then do:

pipwin install numpy

In this way, you will install the latest version of NumPy on your system. 

For more information regarding the same, do refer to the Python certification course.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...