Requirements
By default, zerve canvas run in containers with Python 3.11.1, and a number of pre-installed packages. The user has the option to add new packages, new python versions, etc. from the requirements tab.
What are requirements?
Inside each Canvas you can install the packages that are required to execute a particular project. This means each canvas has an equivalent of a venv that can be customized - no more issues with package version conflicts or reinstalling python.
There is a set of commonly used packages pre-installed for the user to get started.
Adding custom package
Additionally, users have the option to install libraries of their choice. Canvas facilitates this by allowing users to add and configure the version of the library beforehand. This capability enables users to tailor their environment to their specific requirements and preferences.
Specifying Library Versions
To ensure compatibility and stability, users can specify the exact version of the library they wish to install. This is crucial for avoiding potential conflicts or issues that may arise from using different versions of the same library.
The requirement interface within Canvas where the user can add or configure libraries in the version placeholder.
Adding Linux packages
The user can also install Linux package in the Linux packages section. Below is an example of Linux package for OpenCV to the canvas requirements and building the env. By default, the latest version is installed.
Adding environment variable
In certain instances, packages may necessitate a specific path for downloading data or configuring the environment or setting up environment for GPU usage. To accommodate this, Canvas Zerve provides users with the option to specify a path for packages during installation. This feature empowers users to setup the path using custom environment variables, ensuring flexibility and compatibility with various setups.
Environment Variable for configuration setup
The first example use case of environment variable is, setting up the path for matplotlib configuration.
Environment Variable for dependencies download
The second example use is setting up the path to download dependencies installation for NLTK package.
Last updated