在windows10,anaconda创建虚拟环境后,安装pytorch。运行pip install -r requirement.txt安装torch时报错

ERROR: torch has an invalid wheel, .dist-info directory not found

安装时候使用的清华源,更换其他国内镜像源仍然不行,,然后尝试命令

pip install torch==1.6.0 -f https://download.pytorch.org/whl/torch_stable.html

安装成功。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐