Résolue

Which is not recognized

# Résolution d'erreurs # Ligne de commande # VSCode

Bonjour,
en tapant whcich pip3.7 dans le terminal de VS code j'ai les erreurs suivantes:

<hr/>

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).

merci. ca marche avec git bash

Inscris-toi

(c'est gratuit !)

Inscris-toi

Tu dois créer un compte pour participer aux discussions.

Créer un compte

Rechercher sur le site

Formulaire de contact

Inscris-toi à Docstring

Pour commencer ton apprentissage.

Tu as déjà un compte ? Connecte-toi.