質問: '"'"'c:\\users\\104172\\appdata\\local\\temp\\pip-install-5go0i_r_\\torch\\setup.py'"'"'; __file__='"'"'c:\\users\\104172\\appdata\\local\\temp\\pip-install-5go0i_r_\\torch\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\104172\appdata\local\temp\pip-wheel-bk0m_2ck' --python-tag cp36 cwd: c:\users\104172\appdata\local\temp\pip-install-5go0i_r_\torch\ complete output (30 lines): running bdist_wheel running build running build_deps traceback (most recent call last): file "<string>", line 1, in <module> file "c:\users\104172\appdata\local\temp\pip-install-5go0i_r_\torch\setup.py", line 265, in <module> description="tensors and dynamic neural networks in python with strong gpu acceleration", file "c:\data-nobackup\development\im-099329-gremlintest\env\lib\site-packages\setuptools\__init__.py", line 145, in setup return distutils.core.setup(**attrs) file "c:\customsoftware\python3.6\lib\distutils\core.py", line 148, in setup dist.run_commands() file "c:\customsoftware\python3.6\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) file "c:\customsoftware\python3.6\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() file "c:\data-nobackup\development\im-099329-gremlintest\env\lib\site-packages\wheel\bdist_wheel.py", line 192, in run self.run_command('build') file "c:\customsoftware\python3.6\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) file "c:\customsoftware\python3.6\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() file "c:\customsoftware\python3.6\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) file "c:\customsoftware\python3.6\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) file "c:\customsoftware\python3.6\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() file "c:\users\104172\appdata\local\temp\pip-install-5go0i_r_\torch\setup.py", line 51, in run from tools.nnwrap import generate_wrappers as generate_nn_wrappers modulenotfounderror: no module named 'tools.nnwrap' error: failed building wheel for torch pytorchをインストールするにはどうすればよいですか?
回答: pytorchのウェブサイト pytorch.org にアクセスするだけです。次に、「はじめに」ページに移動します。さまざまなオプションを選択できる興味深いオンラインツールが表示され、「トーチ」をインストールするための適切なコマンドが提供されます。次の図のように: 上記の選択でわかるように、トーチのインストール用の次のコマンドが結果になります。pip3 install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html