Aller au contenu

Configurer l'éditeur VS Code pour programmer le robot.

Configurer l'environnement python et installer les dépendances

Commandes :

git clone git@github.com:42Angouleme/pybot.git
cd pybot
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Lancer le programme principal

Commandes :

Utiliser la commande python avec le nom du fichier terminant avec .py où se trouve le programme.

python3 main.py

Pour préparer vscode

Commandes :

code --install-extension ms-python.python
code --install-extension MS-CEINTL.vscode-language-pack-fr
cd pybot
code main.py

Cliquer sur l'icone extension

width:800px

Chercher python et installer

width:800px

Python est installé

width:800px

Ouvrir l'explorateur de fichiers

width:800px

Créer un nouveau fichier

width:800px

Nommer le fichier

width:800px

Écrire son code dans le fichier

width:800px

Lancer le programme

width:800px