Unable to install pytorch 1.2.0: EnvironmentError: [Errno 5] Input/output error

sbelharbi: <p>don’t bother, it is more likely a filesystem issue: <a href="https://github.com/pypa/pip/issues/7032" rel="nofollow noopener">https://github.com/pypa/pip/issues/7032</a></p>
<p>closing.</p>
<p>hi,<br>
i’ve been trying to install pytorch 1.2.0 on a server using <code>pip install torch torchvision</code> but i’m getting the error:</p>
<p><code>ERROR: Could not install packages due to an EnvironmentError: [Errno 5] Input/output error</code>.</p>
<ul>
<li>the installation was fine on another server.</li>
<li>i tried installing torch using the wheel <code>torch-1.2.0-cp37-cp37m-manylinux1_x86_64.whl</code>, but get the same error.</li>
<li>i’m suspecting that there is something going on the failed server. (probably the disc, and the size of the package!)<br>
installing other packages (on the failed server) is fine.</li>
<li>any pointers to the cause? thanks</li>
<li>config.:
<ul>
<li>cuda: <code>10.0</code>
</li>
<li>ubuntu: <code>16.04.4</code>
</li>
</ul>
</li>
</ul>
<p>the last lines of the log of <code>pip install torch torchvision</code>: any clues? installing <code>numpy</code> works fine but not <code>torch</code>. it seems something to do with writing rights! or packages using wheels?</p>
<pre><code class="lang-bash">ERROR: Could not install packages due to an EnvironmentError.
Traceback (most recent call last):
  File "~/Venvs/test/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 407, in run
    use_user_site=options.use_user_site,
  File "~/Venvs/test/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 58, in install_given_reqs
    **kwargs
  File "~/Venvs/test/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 928, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "~/Venvs/test/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 461, in move_wheel_files
    warn_script_location=warn_script_location,
  File "~/Venvs/test/lib/python3.7/site-packages/pip/_internal/wheel.py", line 432, in move_wheel_files
    clobber(source, lib_dir, True)
  File "~/Venvs/test/lib/python3.7/site-packages/pip/_internal/wheel.py", line 410, in clobber
    shutil.copyfile(srcfile, destfile)
  File "~/Venvs/test/lib/python3.7/shutil.py", line 122, in copyfile
    copyfileobj(fsrc, fdst)
OSError: [Errno 5] Input/output error
</code></pre>

GaoKai1537: <p>Hi, I met the same problem with you. So, did you solve the problem? If did, could you share it? I would appreciate it very much!</p>

sbelharbi: <p>hi,<br>
sorry for late reply.<br>
the problem was solved by the admin.<br>
not sure what they did exactly.<br>
however the source of the issue is the writing on a newly installed disc.<br>
writing large files on it caused i/o error.<br>
this prevented installing new packages including pytorch.</p>

GaoKai1537: <p>Thank you for your reply. My problem was also solved by the admin.</p>

Brendan_Wee: <p>Hi I’m getting this same issue. For me the disks and VMs are being created on the fly in a kubernetes cluster. Could anyone give a little more information on what was needed to avoid this error? Or what was happening to cause this error?</p>