How to Solve "Preparing Wheel Metadata. .. Error" This Error for Macos for Python 3.9

How to Solve "Preparing Wheel Metadata. .. Error" This Error for Macos for Python 3.9

I am trying to use pip3 with python 3.9 to install modules... I read replies for windows which suggest installing VisualStudio as we need a good C++ compiler

I use macOS

I am adding the input and error message for better understanding

Input:

rohansaswade@Rohans-MBP ~ % pip3 install numpy

Output:

 Collecting numpy
  Using cached numpy-1.19.2.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:

I did not mention the complete error output as it seems pretty irrelevant, yet if you need it to help me, please drop a comment.

I use macOS Catalina 10.15.7 and python 3.9

3

1 Answer

I had the same issue. In my case, the steps below helped though it was time-consuming.

#Preparation
pip install cython
git clone

#Steps
cd numpy
python setup.py build
python setup.py install

I hope it works for you too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.