• Register
1 vote

Problem :

Getting bellow python and django error 
'virtualenv' is not recognized as an internal or external command, operable program or batch file.

6 5 3
6,930 points

2 Answers

1 vote

Solution :

Please follow bellow steps to get rid of the issue
  • The windows PATH variable must have an entry with your python installation and the scripts subfolder as following C:\Program Files (x86)\Python36-32\ & C:\Program Files (x86)\Python36-32\Scripts\
  • While using pip install virtualenv, please make sure that you run cmd as administrator. Or else, there will be an access denied error during installation and virtualenv will not be installed properly.
  • Make sure that virtualenv has been installed correctly. Also check in the python scripts subfolder  there must exist an .exe named virtualenv.exe. If not, uninstall will pip uninstall virtualenv and install again.
9 7 4
38,600 points
0 votes


STEP 1:  You need to setup a virtual environment using

pip install virtualenv # got install successfully

STEP 2:  You create a virtual name

mkvirtualenv test

STEP 3: Get your own environment

uninstall using:

pip uninstall virtualenvwrapper-win
pip uninstall virtualenv

install using:

pip install virtualenvwrapper-win

STEP 4:  Go to where you want create django app on that folder.

After that, run this command on command prompt

python -m virtualenv .
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) .

after running this command: run .\scripts\activate now you can see this type of line on cmd-prompt (django) C:\Users\gshiv\Desktop\django>

Main folder name before the source path. now you can install any modules for your project that belongs to that main folder only.

10 6 4
31,120 points

Related questions

0 votes
1 answer 166 views
Problem : Today I ran into a weird error trying to install Django as follows 'pip3' is not recognized as an internal or external command, operable program or batch file.
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 11 views
Problem: Hi: I am returning after a little break. I was examining and rehearsing Java these days routinely. I've enlisted myself in an online course to comprehend things in a superior manner. I believe it's helping me somewhat more. Anyway, today I've inquiry with respect to change in Java. I am understanding the java concept of internal and external command.
asked Nov 2 Mashhoodch 1.2k points
0 votes
2 answers 26 views
Hello colleagues, I really want to know How To Solve 'python' is not recognized as an internal or external command, operable program or batch file error. Thanks
asked Oct 23 psandprop 2.4k points
0 votes
1 answer 12 views
I installed WAMP on my computer. After the installation, I created my first php file. I wanted to test it by using the command prompt. php test.php But I got this error instead. 'php' is not recognized as an internal or external command, operable program ... don’t know what’s wrong because I followed the tutorial on how to install WAMP. Any help and guide will be greatly appreciated.
asked Oct 11 azriel 590 points
0 votes
1 answer 14 views
When the above error appear in the command prompt and reasons behind it?
asked Oct 6 jagruthi 680 points