Can I use Python Packages in my Custom Extension?
In this example, the user wanted to add protobuf analysis capabilities to their HLA.
You can modify the sys.path in your extension file to include the directory that you installed the Python package to:import sysMY_ADDITIONAL_PACKAGES_PATH = '/packages/install/location'if MY_ADDITIONAL_PACKAGES_PATH not in sys.path:sys.path.append(MY_ADDITIONAL_PACKAGES_PATH)import protobufNote that
/packages/install/locationis the directory where you installed the packages, not the path to the package itself.
One caveat is that you can't publish extensions to our Extensions Marketplace if it uses external Python packages, mainly because they won't work on other users' PCs. Therefore, external Python package usage is limited to local use only until we add proper support for it.