Tutoriel d'installation de Python
📋 Pré-requis
• Connexion Internet
• Droits d'administrateur sur votre machine
• Environ 100 Mo d'espace disque libre
🪟 Installation sur Windows
Étape 1: Téléchargement
1. Rendez-vous sur le site officiel : [Link]
2. Cliquez sur le bouton jaune "Download Python 3.x.x"
3. Le téléchargement devrait démarrer automatiquement
Étape 2: Installation
1. Ouvrez le fichier téléchargé ([Link])
2. IMPORTANT : Cochez la case "Add Python 3.x to PATH" en bas de la fenêtre
3. Cliquez sur "Install Now"
4. L'installation se lance - patientez quelques minutes
5. À la fin, cliquez sur "Close"
Étape 3: Vérification
1. Ouvrez l'Invite de commandes (cmd)
2. Tapez : python --version
3. Vous devriez voir : Python 3.x.x
🍎 Installation sur macOS
Méthode 1: Installation officielle
1. Téléchargez Python depuis [Link]
2. Ouvrez le fichier .pkg téléchargé
3. Suivez les instructions de l'installateur
4. Redémarrez le terminal
Méthode 2: Via Homebrew (recommandé)
1. Ouvrez le Terminal
2. Installez Homebrew si nécessaire :
/bin/bash -c "$(curl -fsSL [Link]
3. Installez Python :
brew install python
Vérification sur macOS
python3 --version
🐧 Installation sur Linux
Ubuntu/Debian
sudo apt update
sudo apt install python3 python3-pip
CentOS/RHEL/Fedora
# CentOS/RHEL
sudo yum install python3
# Fedora
sudo dnf install python3
Vérification sur Linux
python3 --version
✅ Vérification finale
Testez votre installation
1. Ouvrez votre terminal/console
2. Tapez :
python --version # ou python3 --version sur macOS/Linux
Premier programme test
Créez un fichier [Link] :
print("Bonjour Python !")
print(f"Version : {__import__('sys').version}")
Exécutez-le :
python [Link]
🛠️ Outils recommandés
Éditeurs de code
• VS Code (gratuit) - [Link]
• PyCharm Community (gratuit) - [Link]
❓ Dépannage courant
Problème : "python n'est pas reconnu"
Solution : Redémarrez le terminal ou vérifiez que "Add to PATH" était coché
Problème : Version ancienne affichée
Solution : Utilisez python3 au lieu de python sur certains systèmes
Problème : Permission denied (Linux/macOS)
Solution : Utilisez sudo devant les commandes d'installation
🔄 Mise à jour
Pour mettre à jour Python plus tard :
1. Répétez le processus d'installation
2. La nouvelle version remplacera l'ancienne
3. Vérifiez avec python --version