Get Started

Packages Required

 1h5py~=3.10.0
 2numpy~=1.26.2
 3tnlearn~=0.1
 4torch~=2.1.0
 5sympy~=1.12
 6setuptools~=68.0.0
 7scikit-learn~=1.4.0
 8scipy~=1.12.0
 9joblib~=1.3.2
10requests~=2.31.0
11networkx~=3.2.1
12matplotlib~=3.8.3
13pandas~=2.2.0
14packaging~=23.2
15ipython~=8.18.1
16tqdm~=4.66.2

Basic Install by pip

Run the following command to install tnlearn from PyPI:

1 pip install tnlearn

Build Shared Libraries from Source

Firstly, you can run the following command in Git Bash to clone the library tnlearn to a specified local folder:

1 git clone https://github.com/NewT123-WM/tnlearn.git

Secondly, you can run the following command in Anaconda Prompt to install tnlearn to the specified virtual environment:

1 cd tnlearn
2 pip3 install .

Tip

After entering the above installation command, the required packages will be automatically installed. If there is any error with a required package during automatic installation, you can try to manually install the problematic package separately and then execute the pip3 install tnlearn again.

What’s Next

The next page API Reference provides detailed information about tnlearn, along with simple examples to help users quickly get started.