# Using Python Modules in Virtual Environments

**URL:** <https://forums.developer.nvidia.com/t/using-python-modules-in-virtual-environments/159058>\
**Category:** Jetson Nano\
**Tags:** nano2gb, python\
**Created:** [November 8, 2020, 1:14pm UTC](https://forums.developer.nvidia.com/t/using-python-modules-in-virtual-environments/159058 "2020-11-08T13:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpyildirim97](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alpyildirim97](https://forums.developer.nvidia.com/u/alpyildirim97)\
**Post date:** [November 8, 2020, 1:14pm UTC](https://forums.developer.nvidia.com/t/using-python-modules-in-virtual-environments/159058/1 "2020-11-08T13:14:42Z")

</div>

Hi everyone. I recently bought an Nvidia Jetson Nano Dev. Kit 2gb for my grad. project and I am a total newbie. After long hours I have managed to install opencv, tensorflow and keras to my board and when I test them in terminal by using python3 they work. I have also downloaded pycharm but when I create a new project, pycharm creates a virtual environment that doesn’t include any of modules that I have installed before. I tried to install these modules again by using pycharm but I have got bunch of errors. So is there a method that I can use them in a virtual environment or is there any other useful IDE that doesn’t require virtual environments?

---

<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:** [November 9, 2020, 3:09am UTC](https://forums.developer.nvidia.com/t/using-python-modules-in-virtual-environments/159058/3 "2020-11-09T03:09:35Z")

</div>

Hi,

You will need to create the _virtualenv_ with `-system-site-packages` to enable the access of host modules.  
Please find more detail in the below topic:

> [@openCV import error on python virtual environment](https://forums.developer.nvidia.com/t/opencv-import-error-on-python-virtual-environment/145786/3):
>
> Hi, Please remember to enable the host side package to the virtual environment. $ virtualenv env --system-site-packages created virtual environment CPython3.6.9.final.0-64 in 433ms creator CPython3Posix(dest=/home/nvidia/env, clear=False, global=True) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app\_data\_dir=/home/nvidia/.local/share/virtualenv) added seed packages: pip==20.2.1, setuptools==49.2.1, wheel==0.34.2 activators BashActivator,CS…

Thanks.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:33pm UTC](https://forums.developer.nvidia.com/t/using-python-modules-in-virtual-environments/159058/5 "2021-10-18T17:33:49Z")

</div>

Closed on October 18, 2021, 5:33pm UTC


