Issue with .version

Vladimir1: <p>I can not start the program. Please, help me.<img src="https://discuss.pytorch.org/uploads/default/original/3X/d/e/de7560a341297809de02a2f41579ca7989c26332.png" alt="image" data-base62-sha1="vJXtFyVSya3BPIz3yaUUQx0uhoK" width="690" height="135"></p>

Flock1: <p>How did you install pytorch?</p>

ptrblck: <p>Could you check if your working directory is in the source code folder (or a level above)? If so, change it and try to rerun the code.</p>

Vladimir1: <p>Download <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/3/4/3486d1f04d8694b5f177d5df6905d3d5c46c13ae.png" data-download-href="https://discuss.pytorch.org/uploads/default/3486d1f04d8694b5f177d5df6905d3d5c46c13ae" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/3/4/3486d1f04d8694b5f177d5df6905d3d5c46c13ae_2_690x233.png" alt="image" data-base62-sha1="7uFG6Buzin4mkjo4CkagPiOWnqS" width="690" height="233" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/3/4/3486d1f04d8694b5f177d5df6905d3d5c46c13ae_2_690x233.png, https://discuss.pytorch.org/uploads/default/optimized/3X/3/4/3486d1f04d8694b5f177d5df6905d3d5c46c13ae_2_1035x349.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/3/4/3486d1f04d8694b5f177d5df6905d3d5c46c13ae.png 2x" data-dominant-color="F5F6F7"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1242×420 41.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

Vladimir1: <p>The problem I have is that the working directory is located in a project that links to this one. Where is the best location for this project?<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/6/5/65ef37003cf40ce28eb72332bd1c472b5ad3e8e3.png" alt="image" data-base62-sha1="exKJSpHKz9pgAQa7eF6NNBtW3YL" width="293" height="59"></p>

ptrblck: <p>It’s unclear to me if your working directory does or doesn’t contain the pytorch repository.<br>
In the former case, move it out of your working dir.<br>
You can also post code snippets by wrapping them into three backticks ```, which would be easier to read.</p>

Vladimir1: <p>I moved it from the directory, but the error persists.</p>

ptrblck: <p>This might then indicate a broken PyTorch installation.<br>
Create a new virtual pip/conda environment, reinstall PyTorch there, and try to import it again.</p>

Vladimir1: <p>When using a link from the site to install the system, I get the following error.</p>
<pre><code class="lang-auto">pip3 install torch==1.10.0+cu102 torchvision==0.11.1+cu102 torchaudio===0.10.0+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html
Looking in links: https://download.pytorch.org/whl/cu102/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.10.0+cu102 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.10.0+cu102

</code></pre>
<p>Can you tell why this error occurs?</p>

Vladimir1: <p>I use such settings <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/e/ee6a20a65bf9fe1499c624f12af28e4033dcac6f.png" data-download-href="https://discuss.pytorch.org/uploads/default/ee6a20a65bf9fe1499c624f12af28e4033dcac6f" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/e/e/ee6a20a65bf9fe1499c624f12af28e4033dcac6f_2_690x321.png" alt="image" data-base62-sha1="y170Wjh9wgDurFp7PzfxcgCqrF5" width="690" height="321" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/e/e/ee6a20a65bf9fe1499c624f12af28e4033dcac6f_2_690x321.png, https://discuss.pytorch.org/uploads/default/original/3X/e/e/ee6a20a65bf9fe1499c624f12af28e4033dcac6f.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/e/e/ee6a20a65bf9fe1499c624f12af28e4033dcac6f.png 2x" data-dominant-color="EDDEE1"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">869×405 27.6 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

ptrblck: <p>Maybe try to install the nightly as there are known issues to the <code>torchaudio</code> Windows wheels for the current stable release. Alternatively, remove <code>torchvision</code> from the install command and try to download the wheels manually and install them from a local directory.</p>