pip在Windows 10上安装torchvision时出错(Error in pip install torchvision on Windows 10)

系统教程 行业动态 更新时间:2024-06-14 16:57:40
pip在Windows 10上安装torchvision时出错(Error in pip install torchvision on Windows 10)

在pytorch上安装Windows 10,conda和Cuda 9.0。

cmd没有抱怨,当我跑conda install pytorch cuda90 -c pytorch ,然后当我跑pip3 install torchvision我得到这个错误信息。

Requirement already satisfied: torchvision in PATHTOFILE\python35\lib\site-packages (0.2.1) Requirement already satisfied: numpy in PATHTOFILE\python35\lib\site-packages (from torchvision) (1.12.0+mkl) Requirement already satisfied: six in PATHTOFILE\python35\lib\site-packages (from torchvision) (1.10.0) Collecting pillow>=4.1.1 (from torchvision) Using cached https://files.pythonhosted.org/packages/ab/d2/d27a21bd3e64db1ca1dc7dc16026a16d77f5c3ffca9ec619eddeea7c47ce/Pillow-5.1.0-cp35-cp35m-win_amd64.whl Collecting torch (from torchvision) Using cached https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\USERNAME~1\AppData\Local\Temp\pip-install-a70g611u\torch\setup.py", line 11, in <module> raise RuntimeError(README) RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566). Please follow the instructions at http://pytorch.org/ to install with miniconda instead. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\USERNAME~1\AppData\Local\Temp\pip-install-a70g611u\torch\

任何人都有这个错误?

on pytorch, installing on Windows 10, conda and Cuda 9.0.

cmd did not complain when i ran conda install pytorch cuda90 -c pytorch, then when I ran pip3 install torchvision I get this error message.

Requirement already satisfied: torchvision in PATHTOFILE\python35\lib\site-packages (0.2.1) Requirement already satisfied: numpy in PATHTOFILE\python35\lib\site-packages (from torchvision) (1.12.0+mkl) Requirement already satisfied: six in PATHTOFILE\python35\lib\site-packages (from torchvision) (1.10.0) Collecting pillow>=4.1.1 (from torchvision) Using cached https://files.pythonhosted.org/packages/ab/d2/d27a21bd3e64db1ca1dc7dc16026a16d77f5c3ffca9ec619eddeea7c47ce/Pillow-5.1.0-cp35-cp35m-win_amd64.whl Collecting torch (from torchvision) Using cached https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\USERNAME~1\AppData\Local\Temp\pip-install-a70g611u\torch\setup.py", line 11, in <module> raise RuntimeError(README) RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566). Please follow the instructions at http://pytorch.org/ to install with miniconda instead. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\USERNAME~1\AppData\Local\Temp\pip-install-a70g611u\torch\

Anyone got this error?

最满意答案

通过运行以下来修复它

pip3 install http://download.pytorch.org/whl/cu90/torch-0.4.0-cp35-cp35m-win_amd64.whl

pip3 install torchvision

这奇怪地解决了这个问题。 不知道为什么。 下一次只是尝试在pip上运行一切

Fixed it by running the following

pip3 install http://download.pytorch.org/whl/cu90/torch-0.4.0-cp35-cp35m-win_amd64.whl

pip3 install torchvision

This weirdly fixes the problem. No idea why. Next time just try to run everything on pip

更多推荐

本文发布于:2023-04-13 12:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/8a50b10c4d0942fc6e470daf5bd7ece6.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Windows   pip   install   Error   torchvision

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!