When you know about this project and you want to new install th to support your project or you get trouble as ModuleNotFoundError: No module named "th" or ImportError: cannot import name "th" in your project, let follow this tutorial to install th
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 Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_th_env
- Active the virtual environment
test_th_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_th_env
- Active the virtual environment
source test_th_env/bin/active
To install th on Windows(CMD):
py -m pip install th
To install th on Unix/macOs:
pip install th
Example:
pip install th==0.0.1
Please see the version list below table:
Version | Released date | Command |
---|---|---|
th 0.3.1 | 2021-10-16T13:26:15 | Windows: Unix/macOs:
|
th 0.3.0 | 2021-07-18T08:25:47 | Windows: Unix/macOs:
|
th 0.2.1 | 2021-07-18T07:52:50 | Windows: Unix/macOs:
|
th 0.2.0 | 2021-06-14T08:43:22 | Windows: Unix/macOs:
|
th 0.1.2 | 2020-05-18T15:29:16 | Windows: Unix/macOs:
|
th 0.1.1 | 2020-04-25T08:58:02 | Windows: Unix/macOs:
|
th 0.1.0 | 2020-04-13T05:49:42 | Windows: Unix/macOs:
|
th 0.0.3 | 2020-04-13T05:34:16 | Windows: Unix/macOs:
|
th 0.0.2 | 2020-04-10T12:01:49 | Windows: Unix/macOs:
|
th 0.0.1 | 2020-02-09T07:43:37 | Windows: Unix/macOs:
|
Download the distribution file from th-0.3.1.tar.gz or the specific th version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_th_downloaded_file>
On Unix/macOs:
pip install <path_to_th_downloaded_file>
List distribution:
Project link:
- Homepage