TVM as Environment Manager
Contents
TVM as Environment Manager#
Index#
Create a Project#
tvm project init <project-name> <tutor-version>
# For example:
# tvm project init tvm-test v14.0.0
Note
The <tutor-version> parameter is optional. However, if you don’t specify the version, the project will be created with the version you set previously with tvm use <tutor-version> or the latest version. If you specify the version, and the version isn’t installed, it will be installed.
Remove a Project Environment#
tvm project remove <tutor-version>@<project-name>
# For example:
# tvm project remove v14.0.0@tvm-test
Note
You can use the flag –prune to remove all the project folder. E.g. tvm project remove v14.0.0@tvm-test --prune
Activate a Project Environment#
source .tvm/bin/activate
Deactivate a Project Environment#
tvmoff
Warning
If you also have another environment like a python virtual environment, you need to deactivate each virtual environment in order. For example, if you have (venv) [v12.2.0@project-name]
, you need to run deactivate
and then tvmoff
.
List Environments and Projects#
tvm list
Note
You can use the flag -l or –limit and an integer to restrict the output. E.g. tvm list --limit 10
Install Tutor Plugins#
There are two ways to install Tutor plugins in your project.
TVM#
tvm plugins install <plugin>
Pip#
pip install <plugin>
Note
If you don’t already have your project environment activated, you can activate it using source .tvm/bin/activate
, and then you will be able to use the pip command.
Uninstall Tutor Plugins#
There are two ways to uninstall Tutor plugins in your project.
TVM#
tvm plugins uninstall <plugin>
Pip#
pip uninstall <plugin>
Note
If you don’t already have your project environment activated, you can activate it using source .tvm/bin/activate
, and then you will be able to use the pip command.