Skip to content

install

Install functions

TIP

Note that the documentation is automatically generated from envd/api folder in tensorchord/envd repo. Please update the python file there instead of directly editing file inside envd-docs repo.

apt_packages

python
def apt_packages(name: List[str])

Install package by system-level package manager (apt on Ubuntu)

Arguments:

  • name str - apt package name list

python_packages

python
def python_packages(name: List[str], requirements: str,
                    local_wheels: List[str])

Install python package by pip

Arguments:

  • name List[str] - package name list
  • requirements str - requirements file path
  • local_wheels List[str] - local wheels (wheel files should be placed under the current directory)

conda_packages

python
def conda_packages(name: List[str], channel: List[str], env_file: str)

Install python package by Conda

Arguments:

  • name List[str] - List of package names with optional version assignment, such as ['pytorch', 'tensorflow==1.13.0']
  • channel List[str] - additional channels
  • env_file str - conda env file path

r_packages

python
def r_packages(name: List[str])

Install R packages by R package manager

Arguments:

  • name List[str] - package name list

cuda

python
def cuda(version: str, cudnn: Optional[str] = "8")

Install CUDA dependency

Arguments:

  • version str - CUDA version, such as '11.6.2'
  • cudnn optional, str - CUDNN version, such as '8'

vscode_extensions

python
def vscode_extensions(name: List[str])

Install VS Code extensions

Arguments:

  • name List[str] - extension names, such as ['ms-python.python']

julia_packages

python
def julia_packages(name: List[str])

Install Julia packages

Arguments:

name (List(str)): List of Julia packages

Released under the Apache-2.0 License. Built with VitePress.