如何解决“准备车轮元数据...错误"?适用于python 3.9的MacOS的此错误 [英] How to solve "Preparing wheel metadata ... error" this error for MacOS for python 3.9

查看:187
本文介绍了如何解决“准备车轮元数据...错误"?适用于python 3.9的MacOS的此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将pip3与python 3.9一起使用来安装模块...我阅读了有关Windows的答复,这些答复建议安装Visual Studio,因为我们需要一个好的C ++编译器

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

我使用macOS

我正在添加输入和错误消息以更好地理解

I am adding the input and error message for better understanding

输入:

rohansaswade@Rohans-MBP ~ % pip3 install numpy

输出:

 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.

我使用macOS Catalina 10.15.7和python 3.9

I use macOS Catalina 10.15.7 and python 3.9

推荐答案

我遇到了同样的问题.以我为例,以下步骤虽然很费时,但很有帮助.

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

#准备工作
pip install cython
git clone https://github.com/numpy/numpy.git

#Preparation
pip install cython
git clone https://github.com/numpy/numpy.git

#Steps
cd numpy
python setup.py构建
python setup.py install

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

我希望它也对您有用.

这篇关于如何解决“准备车轮元数据...错误"?适用于python 3.9的MacOS的此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆