Pytorch安装问题:pip3 install torchvision报错解决

    xiaoxiao2025-02-18  45

    问题描述

    Collecting torchvision Using cached torchvision-0.1.8-py2.py3-none-any.whl Collecting torch (from torchvision) Using cached 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 "/tmp/pip-build-hho2Nf/torch/setup.py", line 11, in <module> raise RuntimeError(README) RuntimeError: PyTorch does not currently provide packages for PyPI (see status at #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 /tmp/pip-build-hho2Nf/torch/

    问题我看到的是raise RuntimeError(README) RuntimeError: PyTorch does not currently provide packages for PyPI

    (see status at  https://github.com/pytorch/pytorch/issues/566).

    于是,我去了 https://github.com/pytorch/pytorch/issues/566找答案  

    段子

    在找答案的过程中,看到一个留言很搞笑,现粘贴过来笑一笑

    大意就是,他也遇到了这个问题,等待了一个多月都没有解决,在这一个月了,他在Tensorflow上很舒适,弃了Pytorch 23333

     解决

    再往下的留言中有解决方式

    不使用pip3 install torchvision

    而使用 pip install --no-deps torchvision

    完美解决~

    最新回复(0)