Amr*_*a k 5 python transformer-model google-colaboratory bert-language-model huggingface-transformers
https://colab.research.google.com/drive/11u6leEKvqE0CCbvDHHKmCxmW5GxyjlBm?usp=sharing
setup.py 文件位于 Transformers 文件夹(根目录)中。但是当我运行时出现这个错误
!git clone https://github.com/huggingface/transformers
!cd transformers
!pip install -e .
!pip install -r transformers/examples/pytorch/translation/requirements.txt
Run Code Online (Sandbox Code Playgroud)
谁能告诉我为什么会发生这种情况?
此错误消息通常意味着 Python 无法在其要查找的目录中找到 a\xc2\xa0 setup.py \xc2\xa0file 或 a\xc2\xa0 pyproject.toml \xc2\xa0file。
\n如果您尝试创建新的 Python 项目,请确保您的项目目录包含 a\xc2\xa0setup.py\xc2\xa0 文件或 \xc2\xa0pyproject.toml\xc2\xa0 文件,因为其中之一是创建项目所必需的。 Python 项目被视为“可安装”。
\n请阅读Packaging.python.org/en/latest以了解打包在 Python 中的工作原理。
\n| 归档时间: |
|
| 查看次数: |
15374 次 |
| 最近记录: |