一个都不能少。pip install vit-pytorch -i https://pypi.tuna.tsinghua.edu.cn/simple ,pip install sentencepiece
PHP
0
E:\ai\CPM>pip install vit-pytorch -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting vit-pytorch
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1a/6d/dab866915fdd2233a1a9ba74c0eaa0195ebb5d1ff34d66f4ff97d339176d/vit_pytorch-0.35.8-py3-none-any.whl (68 kB)
|████████████████████████████████| 68 kB 657 kB/s
Collecting torchvision
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3d/f1/406aaf7a71f0c49b9ca5ea331fdc5c81b8339e6a47ad0aa12848caaf938a/torchvision-0.11.3-cp36-cp36m-win_amd64.whl (985 kB)
|████████████████████████████████| 985 kB 298 kB/s
Collecting einops>=0.4.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/df/bf/18c6c753fe699c44e3d6013d75074e15f139f9a9adbaeb108f61d73d18d1/einops-0.4.1-py3-none-any.whl (28 kB)
Requirement already satisfied: torch>=1.10 in e:\python3.6\lib\site-packages (from vit-pytorch) (1.10.2+cu113)
Requirement already satisfied: dataclasses in e:\python3.6\lib\site-packages (from torch>=1.10->vit-pytorch) (0.8)
Requirement already satisfied: typing-extensions in e:\python3.6\lib\site-packages (from torch>=1.10->vit-pytorch) (4.1.1)
Collecting pillow!=8.3.0,>=5.3.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8f/10/c8dc9fff37b69b5962b7783ab4835611e83dada453cd9913d82ca2a1321b/Pillow-8.4.0-cp36-cp36m-win_amd64.whl (3.2 MB)
|████████████████████████████████| 3.2 MB 1.1 MB/s
Requirement already satisfied: numpy in e:\python3.6\lib\site-packages (from torchvision->vit-pytorch) (1.19.5)
Installing collected packages: pillow, torchvision, einops, vit-pytorch
Successfully installed einops-0.4.1 pillow-8.4.0 torchvision-0.11.3 vit-pytorch-0.35.8
装好再装
pip install sentencepiece
版权声明:除非特别标注原创,其它均来自互联网,转载时请以链接形式注明文章出处。