torchvision 安装出现错误[通俗易懂]

2022-09-12 10:49:50 浏览数 (2)

大家好,又见面了,我是你们的朋友全栈君。

错误: (base) C:Users****_admin>pip install torchvision Collecting torchvision Using cached https://files.pythonhosted.org/packages/fb/01/03fd7e503c16b3dc262483e5555ad40974ab5da8b9879e164b56c1f4ef6f/torchvision-0.2.2.post3-py2.py3-none-any.whl Requirement already satisfied: pillow>=4.1.1 in d:pythonlibsite-packages (from torchvision) (5.4.1) Collecting torch (from torchvision) Using cached https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File “”, line 1, in File “C:Users****_A~1AppDataLocalTemppip-install-1_kj1dqltorchsetup.py”, line 11, in raise RuntimeError(README) RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566).

代码语言:javascript复制
Please follow the instructions at http://pytorch.org/ to install with miniconda instead.

----------------------------------------

ERROR: Command “python setup.py egg_info” failed with error code 1 in C:Users****_A~1AppDataLocalTemppip-install-1_kj1dqltorch

解决:

不使用pip3 install torchvision

而使用 pip install –no-deps torchvision

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/152606.html原文链接:https://javaforall.cn

0 人点赞