安装torchtext导致pytorch版本与torchvision和torchaudio不兼容

2023-10-27

安装torchtext

(pytorch) D:\Study\Python\pythonProject>pip install torchtext -i https://pypi.tuna.tsinghua.edu.cn/simple

在这里插入图片描述如图

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.11.1 requires torch1.10.0, but you have torch 1.10.1 which is incompatible.
torchaudio 0.10.0 requires torch
1.10.0, but you have torch 1.10.1 which is incompatible.

最后没办法,重新装pytorch以及配套的torchvision和torchaudio

conda install pytorch torchvision torchaudio cpuonly -c pytorch

在这里插入图片描述
解决了

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

安装torchtext导致pytorch版本与torchvision和torchaudio不兼容 的相关文章

随机推荐