I\'m a beginner in python. When I want to install NumPy, I didn\'t work, and especially when the execution reaches this line "Preparing wheel metadata" and here is the
This pip install
command is attempting to build numpy from source. You can see this because a .zip
file is being downloaded instead of a wheel .whl
file. The .zip
file contains the source code. Much of NumPy is written in C and needs to be compiled, but it is likely the case that your computer does not have a compiler installed. A wheel (.whl
) file does not need to be compiled -- it includes already compiled code, so you do not need a compiler.
EDIT (December 15, 2020): wheel files are available for version 1.19.4, so one can use pip install numpy
with python 3.9.
According to https://pypi.org/project/numpy/#files, there is no wheel file yet for python 3.9, so your options are to build numpy from source, use python 3.8 until a numpy wheel comes out for python 3.9, or use conda
, which already distributes numpy for python 3.9.