After I installed Python and Django, I tried to use virtualenv for a Django project. I installed virtualenv using pip:
pip install virtualenv # got installed successfully
When I tried to run it, I got this error message:
C:\Users\gshiv\Desktop\DjangoProject>virtualenv
'virtualenv' is not recognized as an internal or external command,
operable program or batch file.
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) .
.\scripts\activate
now you can see this type of line on cmd-prompt (django) C:\Users\gshiv\Desktop\django>
pip install django works fine.