https://pytorch.org/get-started/locally/
で「1.12.1」を選んでますが、pipが実際にインストールしようとしてるのは
> Using cached torch-1.7.0-cp36-cp36m-win_amd64.whl (184.0 MB)
なので「1.7.0」です
「pip3 install...」に「--no-cache-dir」を付けて再度実行してみてください
それでもpipが「1.7.0」をインストールしようとするなら、
> Python : 3.6.1
がダメなのかも
https://pytorch.org/get-started/previous-versions/
に書かれてる手順で「1.7.0」を入れるか、あるいはpythonのバージョンを3.7かそれ以降にするか、してみたらいかがでしょうか
【追記】
https://github.com/pytorch/pytorch/issues/66462
に
「1.10.X should be the last official PyTorch release to support Python 3.6」
と書かれてるので、python 3.6でも
https://pytorch.org/get-started/previous-versions/
の「1.10.1」まではインストールできそうな気がします
実現したいこと
Pytorchをインストールしたくて公式サイトより自分の環境に合わせてインストールを進めていたのですが、
以下エラーが発生してしまいました。
添付画像のRun this Commandのコマンドをコピペして実行するとエラーが起きました。
解決方法がわかる方、ご回答のほどよろしくお願いいたします。
環境
OS : Windows10
Python : 3.6.1
CUDA : 11.6
発生している問題・エラーメッセージ
C:\Users\user>pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116 Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116 Collecting torch Using cached torch-1.7.0-cp36-cp36m-win_amd64.whl (184.0 MB) ERROR: torch has an invalid wheel, .dist-info directory not found
回答1件
あなたの回答
tips
プレビュー