Skip to content Skip to sidebar Skip to footer

Numpy/ Pandas/ Matplotlib Taking Too Long To Install

I've decided to install of MacOs Big Sur and now I do have to reinstall all the packages again... But I'm facing some problems. I don't have much experience using terminal, but it

Solution 1:

Looks like Pip can not find an appropriate Pandas wheel for your platform (macOS 11.0, Python 3.8). The closest available match is for macOS 10.x. Instead, Pip needs to build the wheel (compile and link the library) before installing.

I can't say for sure without testing, but I suspect the platform tag changed on Big Sur from macosx_10_9_x86_64 to something like macosx_11_0....

Until numpy/pandas maintainers release binary wheels for your platform, one option is to build them yourself.

Seems the homebrew Python doesn't suffer from this problem, so you might want to give this a try.

Solution 2:

UPDATE: (As of Oct 20, 2021) Python 3.10, released on Oct 4, 2021 is not compatible with MacOS11. Errors in build process from scratch warn that "some code will never be executed." I suspect incompatibility between xcode and clang calls. TBH, save yourself the heartbreak and go for the Anaconda/miniconda distros.

Solution 3:

Main issue seems to be Big Sur trying to protect this python3 installation it ships with. python@3.8 as is on the OS will throw these problems such as

Defaulting to user installation because normal site-packages is not writeable

I'd recommend installing another version of python3.8 with

brew install python@3.8

and writing a symlink to use that in the future.

ln -s -f /usr/local/opt/python@3.8... /usr/bin/python3

Solution 4:

I was able to install numpy after installing python-3.7.3 from Python official site, and looks like installing numpy in 3.7.3's environment is not any issue.

Post a Comment for "Numpy/ Pandas/ Matplotlib Taking Too Long To Install"