Which is not recognized
Bonjour,
en tapant whcich pip3.7 dans le terminal de VS code j'ai les erreurs suivantes:
PS C:\Python_training\Hello_World\projet_python> which pip3.7
which : The term 'which' 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
-
which pip3.7
-
~~~~~
- CategoryInfo : ObjectNotFound: (which:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Je suis bien dans mon virtual env 3.7.9('env:venv)
PS C:\Python_training\Hello_World\projet_python> py -3 --version
Python 3.7.9
Apparement le terminal ne reconnait pas la commande "which".
que faut-il faire?

Bonjour Beninio !
Tu sembles utiliser PowerShell (tu peux le voir avec le "PS" qui apparaît au début de la ligne). C'est un shell avec des commandes différentes de ceux utilisés sur Mac OS et Linux et la commande which n'existe pas sur ce shell.
Je te conseille à la place sur Windows d'utiliser Git Bash pour avoir les mêmes commandes Bash que sur Mac et Linux (dont la commande which).
Inscris-toi
(c'est gratuit !)
Tu dois créer un compte pour participer aux discussions.
Créer un compte