Installation¶
You can install Gym Xiangqi using pip or directly from source code.
Installing from Source¶
To install from the source,
First download the latest release from our repository.
Extract the files using unzip or tar
unzip gym-xiangqi-x.x.x.zip
tar -xf gym-xiangqi-x.x.x.zip
Change directory to project root:
cd gym-xiangqi
Build and install:
python setup.py build
python setup.py install
Installing for Development¶
To install for development,
clone the repository:
git clone https://github.com/tanliyon/gym-xiangqi.git
Change directory to project root:
cd gym-xiangqi
Install Python Dependencies:
pip install -r requirement.txt
Note
We recommend creating a separate virtual environment just for this project.
To create a virtual environment, run:
python -m venv <virtual environment name>
Install the project as Python module:
pip install -e .