Most of the code in this project was developed under a specific python version. Due to the limited number of members in the team, it is possible that some code may not be maintained and upgraded after release. Therefore, if you need to run our code, we strongly recommend that you create a python virtual environment for each individual project. This post will cover the simple steps to create a virtual python environment, using conda (their website) as an example.

Installation

If you have installed the python virtual environment, please head to section Install the requirements. Otherwise, we recommend you install the miniconda, which could be downloaded at their website.

Please note the version of your required python environment.

You can simply have the miniconda installed on your device by following their instructions.

Create the new python environment

We strongly recommend that you create a python virtual environment for each individual project.

Please note the version of your required python environment.

Run the following command to create your new python environment:

conda create -n NAME python=3.9

NAME denotes the name of the new environment.

Make sure your NAME appears on the screen after running the following command.

conda env list

If not, please follow the step conda create -n NAME python=3.9 once again.

Activate the python environment

If your system is windows, please run the following command:

activate NAME

Or yours is linux/mac, please run

source activate NAME

If (NAME) appears in your terminal, you have successfully created the environment.

Install the requirements

Then please run the command to install the required packages listed in the corresponding requirements.txt of different projects in your python environment:

pip install -r requirements.txt

Good Luck!