Python (mandatory)

LightWin requires Python 3.12 or higher. Ensure that you have an appropriate version of Python installed on your system. If not, you can download the latest version from the official Python website.

Reminders

Installation of a package

To install a package, use the appropriate method based on your environment:

  • If using pip:

    pip install <package>
    
  • If using conda, avoid mixing with pip to prevent potential conflicts. Instead, use:

    conda install <package>
    

Note

Since pymoo is not available on the default Anaconda channels, you should create a conda environment and use conda-forge:

conda create -n <env-name> -c conda-forge python=3.12
conda activate <env-name>
conda install cython matplotlib numpy palettable pandas scipy tkinter pymoo pytest -c conda-forge

Always specify -c conda-forge when installing or updating packages.

Warning

pip and conda are not fully compatible. Avoid using them together, or create a dedicated environment to prevent conflicts. For more details, you may refer to this video.