<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2>
<h3 dir="auto">Please note that this issue tracker is not a help form and this issue will be closed.</h3>
<p dir="auto">We have a set of <a href="https://pytorch.org/resources" rel="nofollow">listed resources available on the website</a>. Our primary means of support is our discussion forum:</p>
<ul dir="auto">
<li><a href="https://discuss.pytorch.org/" rel="nofollow">Discussion Forum</a></li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">Trying to install torch results in a python error.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Install Python (python-3.8.0-amd64.exe)</li>
<li>run pip install numpy</li>
<li>run pip install torch torchvision -f <a href="https://download.pytorch.org/whl/torch_stable.html" rel="nofollow">https://download.pytorch.org/whl/torch_stable.html</a></li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Pytorch gets installed</p>
<h2 dir="auto">Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Windows\system32&gt;python C:\temp\collect_env.py
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Microsoft Windows 10 Home
GCC version: (GCC) 4.6.1
CMake version: Could not collect
Python version: 3.8
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 980 Ti
Nvidia driver version: 430.86
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.17.3
[conda] Could not collect"><pre class="notranslate"><code class="notranslate">C:\Windows\system32&gt;python C:\temp\collect_env.py
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Microsoft Windows 10 Home
GCC version: (GCC) 4.6.1
CMake version: Could not collect
Python version: 3.8
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 980 Ti
Nvidia driver version: 430.86
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.17.3
[conda] Could not collect
</code></pre></div>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Full console output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Windows\system32&gt;pip install torch torchvision -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch
  Using cached https://files.pythonhosted.org/packages/f8/02/880b468bd382dc79896eaecbeb8ce95e9c4b99a24902874a2cef0b562cea/torch-0.1.2.post2.tar.gz
Collecting torchvision
  Using cached https://files.pythonhosted.org/packages/fb/01/03fd7e503c16b3dc262483e5555ad40974ab5da8b9879e164b56c1f4ef6f/torchvision-0.2.2.post3-py2.py3-none-any.whl
Collecting pyyaml
  Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz (265kB)
     |████████████████████████████████| 266kB 1.3MB/s
Collecting six
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Requirement already satisfied: numpy in c:\program files\python38\lib\site-packages (from torchvision) (1.17.3)
Collecting pillow&gt;=4.1.1
  Downloading https://files.pythonhosted.org/packages/b6/5a/ee223b0503ebba3d6adcf24516cbae85d581058f2bac635fc82e4bd6c2bf/Pillow-6.2.1-cp38-cp38-win_amd64.whl (2.0MB)
     |████████████████████████████████| 2.0MB 6.4MB/s
Installing collected packages: pyyaml, torch, six, pillow, torchvision
    Running setup.py install for pyyaml ... done
    Running setup.py install for torch ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\Tyler\AppData\Local\Temp\pip-record-72uhhcea\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\
    Complete output (23 lines):
    running install
    running build_deps
    Traceback (most recent call last):
      File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
      File &quot;C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\setup.py&quot;, line 225, in &lt;module&gt;
        setup(name=&quot;torch&quot;, version=&quot;0.1.2.post2&quot;,
      File &quot;c:\program files\python38\lib\site-packages\setuptools\__init__.py&quot;, line 145, in setup
        return distutils.core.setup(**attrs)
      File &quot;c:\program files\python38\lib\distutils\core.py&quot;, line 148, in setup
        dist.run_commands()
      File &quot;c:\program files\python38\lib\distutils\dist.py&quot;, line 966, in run_commands
        self.run_command(cmd)
      File &quot;c:\program files\python38\lib\distutils\dist.py&quot;, line 985, in run_command
        cmd_obj.run()
      File &quot;C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\setup.py&quot;, line 99, in run
        self.run_command('build_deps')
      File &quot;c:\program files\python38\lib\distutils\cmd.py&quot;, line 313, in run_command
        self.distribution.run_command(command)
      File &quot;c:\program files\python38\lib\distutils\dist.py&quot;, line 985, in run_command
        cmd_obj.run()
      File &quot;C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\setup.py&quot;, line 51, in run
        from tools.nnwrap import generate_wrappers as generate_nn_wrappers
    ModuleNotFoundError: No module named 'tools.nnwrap'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\Tyler\AppData\Local\Temp\pip-record-72uhhcea\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
"><pre class="notranslate"><code class="notranslate">C:\Windows\system32&gt;pip install torch torchvision -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch
  Using cached https://files.pythonhosted.org/packages/f8/02/880b468bd382dc79896eaecbeb8ce95e9c4b99a24902874a2cef0b562cea/torch-0.1.2.post2.tar.gz
Collecting torchvision
  Using cached https://files.pythonhosted.org/packages/fb/01/03fd7e503c16b3dc262483e5555ad40974ab5da8b9879e164b56c1f4ef6f/torchvision-0.2.2.post3-py2.py3-none-any.whl
Collecting pyyaml
  Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz (265kB)
     |████████████████████████████████| 266kB 1.3MB/s
Collecting six
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Requirement already satisfied: numpy in c:\program files\python38\lib\site-packages (from torchvision) (1.17.3)
Collecting pillow&gt;=4.1.1
  Downloading https://files.pythonhosted.org/packages/b6/5a/ee223b0503ebba3d6adcf24516cbae85d581058f2bac635fc82e4bd6c2bf/Pillow-6.2.1-cp38-cp38-win_amd64.whl (2.0MB)
     |████████████████████████████████| 2.0MB 6.4MB/s
Installing collected packages: pyyaml, torch, six, pillow, torchvision
    Running setup.py install for pyyaml ... done
    Running setup.py install for torch ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'"'"'; __file__='"'"'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Tyler\AppData\Local\Temp\pip-record-72uhhcea\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\
    Complete output (23 lines):
    running install
    running build_deps
    Traceback (most recent call last):
      File "&lt;string&gt;", line 1, in &lt;module&gt;
      File "C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\setup.py", line 225, in &lt;module&gt;
        setup(name="torch", version="0.1.2.post2",
      File "c:\program files\python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "c:\program files\python38\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\program files\python38\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\setup.py", line 99, in run
        self.run_command('build_deps')
      File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\Tyler\AppData\Local\Temp\pip-install-qo2q0sjc\torch\setup.py", line 51, in run
        from tools.nnwrap import generate_wrappers as generate_nn_wrappers
    ModuleNotFoundError: No module named 'tools.nnwrap'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'"'"'; __file__='"'"'C:\\Users\\Tyler\\AppData\\Local\\Temp\\pip-install-qo2q0sjc\\torch\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Tyler\AppData\Local\Temp\pip-record-72uhhcea\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p>