Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install cutensor via python pip




cutensor - NVIDIA cuTENSOR, it belongs to Classifiers:

- Environment :: GPU
- Environment :: GPU :: NVIDIA CUDA
- Environment :: GPU :: NVIDIA CUDA :: 10.2
- Environment :: GPU :: NVIDIA CUDA :: 11.0
- Environment :: GPU :: NVIDIA CUDA :: 11.1
- Environment :: GPU :: NVIDIA CUDA :: 11.2
- Environment :: GPU :: NVIDIA CUDA :: 11.3
- Environment :: GPU :: NVIDIA CUDA :: 11.4
- Environment :: GPU :: NVIDIA CUDA :: 11.5
- Environment :: GPU :: NVIDIA CUDA :: 11.6
- Environment :: GPU :: NVIDIA CUDA :: 11.7

When you know about this project and you want to new install cutensor to support your project or you get trouble as ModuleNotFoundError: No module named "cutensor" or ImportError: cannot import name "cutensor" in your project, let follow this tutorial to install cutensor



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_cutensor_env

- Active the virtual environment

test_cutensor_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_cutensor_env

- Active the virtual environment

source test_cutensor_env/bin/active


Step 2: OK, now, let flow below content to start the installation cutensor

To install cutensor on Windows(CMD):

py -m pip install cutensor

To install cutensor on Unix/macOs:

pip install cutensor


Step 3: If you want to install a specific cutensor version, add ==<cutensor version> to the end command line

Example:

pip install cutensor==1.5.0.3


Please see the version list below table:

VersionReleased dateCommand
cutensor 1.6.0.32022-07-21T23:57:39Windows:

py -m pip install cutensor==1.6.0.3

Unix/macOs:

pip install cutensor==1.6.0.3

cutensor 1.5.0.32022-03-22T23:17:06Windows:

py -m pip install cutensor==1.5.0.3

Unix/macOs:

pip install cutensor==1.5.0.3


Step 4: Otherwise, you can install cutensor from local archives:

Download the distribution file from cutensor-1.6.0.3-py3-none-manylinux2014_x86_64.whl or the specific cutensor version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_cutensor_downloaded_file>

On Unix/macOs:

pip install <path_to_cutensor_downloaded_file>


List distribution:

- cutensor-1.5.0.3-py3-none-manylinux2014_aarch64.whl
- cutensor-1.5.0.3-py3-none-manylinux2014_x86_64.whl
- cutensor-1.6.0.3-py3-none-manylinux2014_aarch64.whl
- cutensor-1.6.0.3-py3-none-manylinux2014_x86_64.whl


Project link:

- Homepage