<h2 dir="auto">🐛 Bug</h2>
<p dir="auto"><code class="notranslate">import torch</code> fails to command prompt without an error for recent nightly builds on Windows.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt; pip install future protobuf scipy
C:\&gt; pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
Collecting torch
  Using cached https://download.pytorch.org/whl/nightly/cpu/torch-1.4.0.dev20191216%2Bcpu-cp36-cp36m-win_amd64.whl
Collecting torchvision
  Using cached https://download.pytorch.org/whl/nightly/cpu/torchvision-0.5.0.dev20191215%2Bcpu-cp36-cp36m-win_amd64.whl
Requirement already satisfied: numpy in c:\python36\lib\site-packages (from torchvision) (1.17.4)
Requirement already satisfied: six in c:\python36\lib\site-packages (from torchvision) (1.13.0)
Requirement already satisfied: pillow&gt;=4.1.1 in c:\python36\lib\site-packages (from torchvision) (6.2.1)
Installing collected packages: torch, torchvision
Successfully installed torch-1.4.0.dev20191216+cpu torchvision-0.5.0.dev20191215+cpu

C:\&gt;python
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import torch

C:\&gt;"><pre class="notranslate"><code class="notranslate">C:\&gt; pip install future protobuf scipy
C:\&gt; pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
Collecting torch
  Using cached https://download.pytorch.org/whl/nightly/cpu/torch-1.4.0.dev20191216%2Bcpu-cp36-cp36m-win_amd64.whl
Collecting torchvision
  Using cached https://download.pytorch.org/whl/nightly/cpu/torchvision-0.5.0.dev20191215%2Bcpu-cp36-cp36m-win_amd64.whl
Requirement already satisfied: numpy in c:\python36\lib\site-packages (from torchvision) (1.17.4)
Requirement already satisfied: six in c:\python36\lib\site-packages (from torchvision) (1.13.0)
Requirement already satisfied: pillow&gt;=4.1.1 in c:\python36\lib\site-packages (from torchvision) (6.2.1)
Installing collected packages: torch, torchvision
Successfully installed torch-1.4.0.dev20191216+cpu torchvision-0.5.0.dev20191215+cpu

C:\&gt;python
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import torch

C:\&gt;
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Import completes waiting for next Python command.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto"><code class="notranslate">collect_env.py</code> does not complete as <code class="notranslate">import torch</code> fails.</p>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0):</li>
<li>OS (e.g., Linux): Windows 10 (1909 18363)</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li>
<li>Python version: 3.6.7</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">'import torch' starts to fail in the nightly jobs beginning from Dec. 15.</p>
<p dir="auto"><a href="https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18361&amp;view=results" rel="nofollow">https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18361&amp;view=results</a><br>
<a href="https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18363&amp;view=results" rel="nofollow">https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18363&amp;view=results</a></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>import torch</li>
</ol>

<h2 dir="auto">Expected behavior</h2>

<p dir="auto">Import success.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): master</li>
<li>OS (e.g., Linux): Windows</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li>
<li>Build command you used (if compiling from source): python setup.py install</li>
<li>Python version: 3.5/3.6/3.7</li>
<li>CUDA/cuDNN version: None / 9.2 / 10.1</li>
<li>GPU models and configuration: None</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>

<p dir="auto">Looks like some of the errors are intermittent.</p>
<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> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p>