torchvision 安裝出現錯誤

錯誤:
(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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章