# CUDA/Jetpack

**URL:** <https://forums.developer.nvidia.com/t/cuda-jetpack/111364>\
**Category:** Jetson AGX Xavier\
**Created:** [February 3, 2020, 3:15pm UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364 "2020-02-03T15:15:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdevri](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tdevri](https://forums.developer.nvidia.com/u/tdevri)\
**Post date:** [February 3, 2020, 3:15pm UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/1 "2020-02-03T15:15:33Z")

</div>

I have a jetson xavier. I installed the operating system I thought jetpack came with cuda installed and all the gpu drivers but when i try to use pycuda it is telling me I dont have the drivers.

```
import pycuda.driver as cuda

```

File “/home/throwaway/Downloads/pycuda/pycuda/driver.py”, line 62, in   
from pycuda.\_driver import \* # noqa  
ImportError: No module named \_driver

Any info on setting up python gpu environment and where to download all the gpu drivers for jetson xavier?

thanks.

---

<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:** [February 4, 2020, 3:03am UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/2 "2020-02-04T03:03:34Z")

</div>

Hi,

How do you install pyCUDA?

I can import pyCUDA without issue after this installation command:

```auto
pip3 install numpy pycuda --user

```

```auto
$ python3
>> import pycuda.driver as cuda

```

Thanks.

---

<div class="post-metadata">

**Author:** ![tdevri](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tdevri](https://forums.developer.nvidia.com/u/tdevri)\
**Post date:** [February 4, 2020, 3:21am UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/3 "2020-02-04T03:21:38Z")

</div>

when I try to download it says requirement already satisfied. When I run  
python3  
import pycuda.driver as cuda

I get  
from pycuda.\_driver import \* # noqa  
ModuleNotFoundError: No module named 'pycuda.\_driver

---

<div class="post-metadata">

**Author:** ![tdevri](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tdevri](https://forums.developer.nvidia.com/u/tdevri)\
**Post date:** [February 4, 2020, 3:27am UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/4 "2020-02-04T03:27:43Z")

</div>

Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.13.3)  
Requirement already satisfied: pycuda in /usr/local/lib/python3.6/dist-packages/pycuda-2019.1.2-py3.6-linux-aarch64.egg (2019.1.2)  
Requirement already satisfied: pytools\>=2011.2 in /home/throwaway/.local/lib/python3.6/site-packages (from pycuda) (2020.1)  
Requirement already satisfied: decorator\>=3.2.0 in /usr/lib/python3/dist-packages (from pycuda) (4.1.2)  
Requirement already satisfied: appdirs\>=1.4.0 in /home/throwaway/.local/lib/python3.6/site-packages (from pycuda) (1.4.3)  
Requirement already satisfied: mako in /usr/lib/python3/dist-packages (from pycuda) (1.0.7)  
Requirement already satisfied: six\>=1.8.0 in /usr/lib/python3/dist-packages (from pytools\>=2011.2-\>pycuda) (1.11.0)

---

<div class="post-metadata">

**Author:** ![tdevri](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tdevri](https://forums.developer.nvidia.com/u/tdevri)\
**Post date:** [February 4, 2020, 3:44am UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/5 "2020-02-04T03:44:49Z")

</div>

ok I think it was because I was trying to run files importing pycuda from within the directory I downloaded pycuda

---

<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:** [February 5, 2020, 2:17am UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/6 "2020-02-05T02:17:41Z")

</div>

Hi,

So the issue is fixed after changing the directory, right?  
Thanks.

---

<div class="post-metadata">

**Author:** ![tdevri](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tdevri](https://forums.developer.nvidia.com/u/tdevri)\
**Post date:** [February 5, 2020, 1:56pm UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/7 "2020-02-05T13:56:53Z")

</div>

Yep I guess pycuda couldn’t find the files while trying to execute from the directory that it was downloaded in

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:23pm UTC](https://forums.developer.nvidia.com/t/cuda-jetpack/111364/8 "2021-10-18T18:23:14Z")

</div>

Closed on October 18, 2021, 6:23pm UTC


