[Python] The term virtualenv is not recognized as the name of a cmdlet, function, script file,...

Discussão em 'Python' iniciado por Stack, Abril 6, 2025.

  1. Stack

    Stack Membro Participativo

    I have python installed from python.org.

    The command python --version gives me Python 3.12.2

    I want to create a virtual environment in order to use it for a Django project.

    pip install virtualenv


    works fine.

    But afterwards , the command

    virtualenv env_site


    gives me the error

    virtualenv : Die Benennung "virtualenv" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder
    eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist
    (sofern enthalten), und wiederholen Sie den Vorgang.
    In Zeile:1 Zeichen:1
    + virtualenv env_site
    + ~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (virtualenv:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


    In my path variable, I have the following entries

    C:\Software\Python\Python312\Scripts\
    C:\Software\Python\Python312\
    C:\Users\imelf\AppData\Local\Programs\Python\Launcher\


    What is wrong? Why doesn't he recognize the command virtualenv ?

    Continue reading...

Compartilhe esta Página