# PyTorch from /jp6/cu126 on Jetson Orin Nano (JetPack 6.2.1 / CUDA 12.6) failing due to NumPy mismatch

**URL:** <https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484>\
**Category:** Jetson Orin Nano\
**Tags:** pytorch\
**Created:** [May 18, 2026, 6:45am UTC](https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484 "2026-05-18T06:45:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jc5p](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jc5p](https://forums.developer.nvidia.com/u/jc5p)\
**Post date:** [May 18, 2026, 6:45am UTC](https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484/1 "2026-05-18T06:45:38Z")

</div>

I have downloaded and compiled OpenCV 4.11.0 with CUDA against a ‘standard’ Jetpack install which comes with numpy 1.21  
Ok - so far.

Then I created a python virtual environment and linked numpy and open-cv to dist-packages set  
Next step was to install Torch. I used  
`pip install torch torchvision --index-url ` [https://pypi.jetson-ai-lab.io/jp6/cu126`](https://pypi.jetson-ai-lab.io/jp6/cu126%60) --force-reinstall`

it crashed with  
`Collecting numpy`  
`Downloading ``https://pypi.jetson-ai-lab.io/root/pypi/%2Bf/efd/28d4e9cd7d7a8/numpy-2.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl`` (14.3 MB)`  
`<>`  
`ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘/home/jc/M5Code/mainHost/AI_model/v-yolo/lib/python3.10/site-packages/numpy/` **`config`** `.py’`  
`Check the permissions.`

Yes I do not want it destroying the dist-packages versions.  
It is insisting on numpy 2.2.6 and the base distribution insist on 1.21  
**How to resolve ?**

P.S This is after spending many days, unsuccessfully, trying to do it the other way round.  
ie to Get the base dist\_packages either up to numpy 2 or out of the way so I could start with a numpy 2 world.

Thanks

JC

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [May 18, 2026, 7:47am UTC](https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484/5 "2026-05-18T07:47:01Z")

</div>

Hi,

The error indicates a permission issue.  
Could you try the command with root?

Thanks.

---

<div class="post-metadata">

**Author:** ![jc5p](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jc5p](https://forums.developer.nvidia.com/u/jc5p)\
**Post date:** [May 18, 2026, 11:12pm UTC](https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484/6 "2026-05-18T23:12:13Z")

</div>

I am sure that would work but I dont want it clobbering the dist\_packages. And having a python virtual environment as root does not make any sense

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [May 20, 2026, 6:54am UTC](https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484/7 "2026-05-20T06:54:10Z")

</div>

Hi,

Or could you check why you don’t have the permission for the file below:

```auto
‘/home/jc/M5Code/mainHost/AI_model/v-yolo/lib/python3.10/site-packages/numpy/` **`config`** `.py’

```

Ideally, you should not need the root permission for the location under ${HOME}.  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [June 16, 2026, 7:55am UTC](https://forums.developer.nvidia.com/t/pytorch-from-jp6-cu126-on-jetson-orin-nano-jetpack-6-2-1-cuda-12-6-failing-due-to-numpy-mismatch/370484/9 "2026-06-16T07:55:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
