目录
1.1、pip 中 wheel 报错Failed building wheel for XXX(但包可以安装成功)
2.1、Hugging Face Transformers安装
一、问题
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
解决方法2:
使用conda安装:conda install 包
二、M1 芯片 包版本
2.1、Hugging Face Transformers安装
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