Installation and Configuration with virtualenv

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.

Enabling virtualenv

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.

Usage

You must activate the virtualenv any time that you want to use the NCSDK.

  • Activation

    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.

  • Deactivation

    To leave the virtualenv, enter the following command:

    deactivate
    
  • Python Package Location

    When using the virtualenv, Python packages will be installed to /opt/movidius/virtualenv-python/lib/python3.5/site-packages.

Troubleshooting

  • ImportError when running an NCSDK example or tool:

    Make sure that you have activated the virtualenv as shown above.