Installation
Prerequisites
- Python 3.9 or later
- CMake 3.18 or later
- C++17 compatible compiler
Installing via Pip
CPU Version (PyPI)
You can install the stable CPU version directly from PyPI:
bash
pip install tensorplayCUDA Version (Custom Index)
For CUDA-enabled versions, use our custom wheel index. For example, for CUDA 13.0:
bash
pip install tensorplay --extra-index-url https://download.tensorplay.cn/whl/cu130Note: Replace
cu130with your supported CUDA version (e.g.,cu121,cu118).
Permanent Configuration
To avoid typing the extra index URL every time, you can add it to your pip configuration:
Windows: Create or edit %APPDATA%\pip\pip.ini:
ini
[global]
extra-index-url = https://download.tensorplay.cn/whl/cu130Linux/macOS: Create or edit ~/.pip/pip.conf:
ini
[global]
extra-index-url = https://download.tensorplay.cn/whl/cu130Installing from Source
Clone the repository:
bashgit clone https://github.com/bluemoon-o2/tensorplay.git cd tensorplayInstall dependencies:
bashpip install -r requirements.txtBuild and install:
bashpython setup.py installor for development:
bashpip install -e .
