Hi,
Please remember to add --system-site-packages flag to import the host module within a virtual environment.
You can find an example in the below comment:
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…
More, the pre-installed OpenCV doesn’t enable GPU support.
If you want a GPU version of OpenCV, please build it from the source.
Here is a script to building OpenCV v4.5.5 from source for your reference:
#!/bin/bash
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited.
#
version="4.5.0"
folder="workspace"
echo "** Remove other OpenCV first"
sudo sudo apt-get purge *libopencv*
echo "** Install requirement"
sudo apt-get update
This file has been truncated. show original
Thanks.