# How to install cuda in python

**URL:** https://forum.opencv.org/t/how-to-install-cuda-in-python/5073
**Category:** Python
**Tags:** build, cuda
**Created:** [September 6, 2021, 8:53am UTC](https://forum.opencv.org/t/how-to-install-cuda-in-python/5073 "2021-09-06T08:53:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nistarlwc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/nistarlwc/32/1874_2.png) [@nistarlwc](https://forum.opencv.org/u/nistarlwc)
#### Post date: [September 6, 2021, 8:53am UTC](https://forum.opencv.org/t/how-to-install-cuda-in-python/5073/1 "2021-09-06T08:53:49Z")

</div>

I install opencv-python and opencv-contrib-python == 4.1.2  
How to use it?

---

<div class="post-metadata">

### Author: ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)
#### Post date: [September 6, 2021, 9:06am UTC](https://forum.opencv.org/t/how-to-install-cuda-in-python/5073/2 "2021-09-06T09:06:04Z")

</div>

[opencv-contrib-python](https://pypi.org/project/opencv-contrib-python/) does not include CUDA. The below is taken from the project page

```auto
## OpenCV on Wheels

Pre-built CPU-only OpenCV packages for Python.

Check the manual build section if you wish to compile the bindings from source to enable additional modules such as CUDA.

```
