Virtual env picking up global pytorch version in Jetson

username: Vinayaka_Hegde
cooked: <p>Hi, I have a NVIDIA Orin that has a global pytorch version = <code>1.12.0a0+02fb0b0f.nv22.06</code> installed. Jetpack version of Orin = <code>5.0.1</code>.<br>
I wanted to install PyTorch v1.13.0 in a venv. So, I created a venv and installed pytorch by using v1.13.0 from this link; <a href="https://developer.download.nvidia.cn/compute/redist/jp/v50/pytorch/" rel="noopener nofollow ugc">https://developer.download.nvidia.cn/compute/redist/jp/v50/pytorch/</a></p>
<p>But, after installing and trying <code>torch.__version__</code>, somehow the venv is picking up the global v1.12.0 of pytorch instead of picking up v1.13.0.</p>
<p>The pip3 and python3 point to the venv site-packages and running <code>pip3 list</code> also lists the local venv modules. So, not sure why it’s picking up the global version ?</p>
<p>I have tried deactivating and reinstalling venv multiple times and with different versions of python as well !</p>
<p><strong>PLEASE HELP !!</strong></p>
<p><code>Screenshots : </code></p>
<p>Checking pip3 torch module :<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/6/b/6b0764ba42ce975c87e52378b87dd76640a3c288.png" data-download-href="https://discuss.pytorch.org/uploads/default/6b0764ba42ce975c87e52378b87dd76640a3c288" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/6/b/6b0764ba42ce975c87e52378b87dd76640a3c288.png" alt="image" data-base62-sha1="fgOVE1OFAQlRZwLQZ1FOIO49lTG" width="690" height="201" data-dominant-color="151616"><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">836×244 9.25 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>
<p>Checking which pip3 is picked up :<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/b/d/bd2fb2eaad073651f899b38109ef0a4c77364478.png" data-download-href="https://discuss.pytorch.org/uploads/default/bd2fb2eaad073651f899b38109ef0a4c77364478" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/b/d/bd2fb2eaad073651f899b38109ef0a4c77364478.png" alt="image" data-base62-sha1="qZCr3dTlF52Z9a1aBrRUql0qxAI" width="690" height="78" data-dominant-color="141A18"><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">796×90 2.82 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>
<p>Checking which python3 is picked up :<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/8/3/836829865f8ab5feb9a9002344278cb5da84b45c.png" data-download-href="https://discuss.pytorch.org/uploads/default/836829865f8ab5feb9a9002344278cb5da84b45c" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/8/3/836829865f8ab5feb9a9002344278cb5da84b45c.png" alt="image" data-base62-sha1="iKtIkWQZQwQZud5FV4eN0PFBmag" width="690" height="70" data-dominant-color="161C1A"><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">749×76 2.69 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>
<p>Listing the modules of pip3 has pytorch v1.13.0 installed :</p>
<p><img src="https://discuss.pytorch.org/uploads/default/original/3X/7/9/7987a0c17d06f0959f0867af572a42bf649171d5.png" alt="image" data-base62-sha1="hl6m2qYGB2QRh5Ey35rSf1rxPYV" width="678" height="224"></p>
<p>pytorch picks up global v1.12.0 not sure why ?</p>
<p><img src="https://discuss.pytorch.org/uploads/default/original/3X/8/a/8aa8ca1bf4753a0e84f9de59cef9d7e56f9489e2.png" alt="image" data-base62-sha1="jMDwhHBjjjEwixFt9gpgKbyXb1g" width="669" height="235"></p>