目录

一、问题

  1.1、pip 中 wheel 报错Failed building wheel for XXX(但包可以安装成功)

二、M1 芯片 包版本

  2.1、Hugging Face Transformers安装

  2.2、版本


​​​​​​​

一、问题

  1.1、pip 中 wheel 报错Failed building wheel for XXX(但包可以安装成功)

      报错:would build wheel with unsupported tag ('cp38','cp38','macosx_11_0_arm64')

        解决方法1:

python -m pip install wheel setuptools pip --upgrade

原文:Can't build wheel for MacOs M1   

        解决方法2:

       使用conda安装:conda install 包

二、M1 芯片 包版本

  2.1、Hugging Face Transformers安装

GitHub:huggingface transformers conda 安装

Since Transformers version v4.0.0, we now have a conda channel: huggingface.
🤗 Transformers can be installed using conda as follows:
 
conda install -c huggingface transformers
 
Follow the installation pages of Flax, PyTorch or TensorFlow to see how to install them with conda.

  2.2、版本

tensorflow 2.5.0
pytorch 1.8
numpy 1.19.5
gensim 4.0.0

  

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐