Bonjour. au niveau des tests la je me retrouve avec une erreur
PS C:\Program Files\python 311\Lib\site-packages> touch mon.py
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
-
touch mon.py
-
~~~~~
-
CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
-
FullyQualifiedErrorId : CommandNotFoundException
-
PS C:\Program Files\python 311\Lib\site-packages>
Bonjour Issiaka,
Au vu de ta capture, tu utilises l'invit de commande Powershell. Dans cet environnement, la fonction touch qui permet de créer un fichier sous linux ou MacOs n'existe pas sous windows.
Si tu veux utiliser touch sous windows, il faut utiliser l'invit de commande gitbash .
Si tu veux un équivalent de touch dans Powershell, tu peux utilise la commande ni pour "new item"
ni test.txt va te créer un fichier vide.
Je te conseille de regarder sur la plateforme, Thibault parle de gitbash pour ceux qui sont sur windows mais qui veulent reproduire le comportement de l'invit de commande de Linux/MacOs.
J'espère que cela répond à ta question.
A bientôt.
Inscris-toi
(c'est gratuit !)
Tu dois créer un compte pour participer aux discussions.
Créer un compte