pythonpython-2.7virtualenv

'virtualenv' is not recognized as an internal or external command, operable program or batch file


After I installed Python and Djangom, I'm trying to use virtualenv for django project purpose using virtualenv. I installed virtualenv using pip.

pip install virtualenv # got install successfully

When I tried to run it, I got the error message

C:\Users\gshiv\Desktop\DjangoProject>virtualenv
'virtualenv' is not recognized as an internal or external command,
operable program or batch file.

Solution

  • steps: - go to where you want create django app on that folder.

    then run this command on command prompt : python -m virtualenv .

    (eg. C:\Users\gshiv\Desktop\django>python -m virtualenv .)

    where django is the my folder i want run virtualenv and .(dot) indicates virtualenv install all it's folder in django folder otherwise you can use other folder name instead .(dot) this time virtulenv creates a folder in main folder(django) .

    pip install django works fine.