Mac*_*hai 2 python-3.x pytorch
当我尝试网站使用的命令时pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
它返回了错误代码
ERROR: Could not find a version that satisfies the requirement torch==1.7.0+cpu (from versions: 0.1.2,
0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.7.0+cpu
Run Code Online (Sandbox Code Playgroud)
即使我更改代码以满足要求,它也会出现更多错误,例如 ModuleNotFoundError: No module named 'tools.setup_helpers'
在https://download.pytorch.org/whl/torch_stable.html页面搜索“1.7.0” ,可以看到只有 Python 3.6、3.7 和 3.8 的轮子可用。
所以Python 3.9没有官方的轮子。
更新:PyTorch 目前不适用于 Python 3.9,有一些已知问题正在解决:https://github.com/pytorch/pytorch/issues/47776
| 归档时间: |
|
| 查看次数: |
16948 次 |
| 最近记录: |