大家好,又见面了,我是你们的朋友全栈君。
错误:
(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:\python\lib\site-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~1\AppData\Local\Temp\pip-install-1_kj1dql\torch\setup.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).
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~1\AppData\Local\Temp\pip-install-1_kj1dql\torch\
解决:
不使用pip3 install torchvision
而使用 pip install –no-deps torchvision
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/152606.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...