Before you can run main.py
, you need to have Python installed on your system. You can download Python from the official website: python.org.
Predtým ako môžete spustiť main.py
, musíte mať nainštalovaný Python na vašom systéme. Python si môžete stiahnuť z oficiálnej stránky: python.org.
-
Download the Python installer from python.org.
-
Run the installer and follow the instructions. Make sure to check the option to add Python to your PATH.
-
Stiahnite si inštalátor Pythonu z python.org.
-
Spustite inštalátor a postupujte podľa pokynov. Uistite sa, že zaškrtnete možnosť pridať Python do vášho PATH.
-
Open Command Prompt (Windows) or Terminal (MacOS/Linux).
-
Navigate to the directory where
main.py
is located using thecd
command.cd path\to\your\project
-
Install the required libraries.
pip install itertools time tk random networkx pillow
-
Otvorte Príkazový riadok (Windows) alebo Terminál (MacOS/Linux).
-
Navigujte do adresára, kde sa nachádza
main.py
pomocou príkazucd
.cd cesta\k\vašemu\projektu
-
Nainštalujte požadované knižnice.
pip install itertools time tk random networkx pillow
Once all the required libraries are installed, you can run main.py
by executing the following command in your Command Prompt or Terminal:
python main.py
Keď sú všetky potrebné knižnice nainštalované, môžete spustiť main.py
vykonaním nasledujúceho príkazu v Príkazovom riadku alebo Termináli:
python main.py