Difficultés à convertir mon fichier python en fichier .exe

Résolu/Fermé
Ben_Ben - Modifié le 11 août 2022 à 15:36
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 - 11 août 2022 à 15:37

Bonjour,

Je souhaite convertir mon fichier python en fichier .exe. Mais quand j'essaie en ligne de commande avec : auto pip to exe, j'obtiens le message suivant.

ERROR: Could not find a version that satisfies the requirement auto-pip-to-exe (from versions: none)
ERROR: No matching distribution found for auto-pip-to-exe

[notice] A new release of pip available: 22.2.1 -> 22.2.2
[notice] To update, run: C:\Users\LENOVO GAMER\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip

Quelqu'un peut-il m'aider s'il vous plaît ?

A voir également:

2 réponses

trauqnej Messages postés 154 Date d'inscription mardi 7 juin 2005 Statut Membre Dernière intervention 5 septembre 2022 23
6 août 2022 à 03:16

En fait, il indique qu'il faut mettre à jour !!

donc, dans une console (boite écran noir) lancé via cmd....

Il faut mettre la ligne indiquée :

C:\Users\LENOVO GAMER\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip

Cordialement,

0
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 7 749
11 août 2022 à 15:37

Bonjour,

Pour compléter ce que trauqnej indique :

  • mets à jour pip
  • installe auto-pip-to-exe
  • lance  auto-pip-to-exe
python -m pip install --upgrade pip
pip install auto-py-to-exe
auto-py-to-exe

Pour plus de détails, voir cette page.

Bonne chance

0