NOTE: This feature is only available with Intel® Movidius™ Neural Compute SDK 2.x.
virtualenv is a tool to create isolated Python environments that help avoid issues caused by conflicting package dependencies for different applications.
To use virtualenv with the Intel® Movidius™ Neural Compute SDK (Intel® Movidius™ NCSDK), you must enable virtualenv in the NCSDK configuration before installing the NCSDK.
Before running the ncsdk/install.sh script, open ncsdk/ncsdk.conf for editing and set USE_VIRTUALENV=yes
(by default it will say USE_VIRTUALENV=no
).
Save the change and then proceed with NCSDK installation.
You must activate the virtualenv any time that you want to use the NCSDK.
To activate the virtualenv for use, enter the following command:
source /opt/movidius/virtualenv-python/bin/activate
If the virtualenv was successfully activated, you will see (virtualenv-python)
amended to your command prompt.
To leave the virtualenv, enter the following command:
deactivate
When using the virtualenv, Python packages will be installed to /opt/movidius/virtualenv-python/lib/python3.5/site-packages.
ImportError
when running an NCSDK example or tool:
Make sure that you have activated the virtualenv as shown above.