• Register
1 vote
5.9k views

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

Please log in or register to answer this question.

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

Solution:

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 75 views
75 views
Problem : Getting bellow python and django error , any help: 'virtualenv' is not recognized as an internal or external command, operable program or batch file.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 356 views
356 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 10 views
10 views
Problem: When I use the command.I get this error > ERROR:'keytool' is not recognized as an internal or external command, operable program or batch file
asked May 4 salim1 60.6k points
0 votes
1 answer 7 views
7 views
Problem: Whenever I try and run mycommand.exe from my windows cmd.exe terminal, I get this error: ''mycommand.exe' is not recognized as an internal or external command, operable program or batch file' Then I also experienced a similar error when I tried to run C:\Program Files\My-App\Mobile.exe ''C:\Program' is not recognized as an internal or external command, operable program or batch file'
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 6 views
6 views
Problem: Whenever I try and run mycommand.exe from my windows cmd.exe terminal, I get this error: ''mycommand.exe' is not recognized as an internal or external command, operable program or batch file' Then I also experienced a similar error when I tried to run C:\Program Files\My-App\Mobile.exe ''C:\Program' is not recognized as an internal or external command, operable program or batch file'
asked Apr 25 sumaiya simi 43.9k points
0 votes
1 answer 25 views
25 views
Problem: 'ls' is not recognized as an internal or external command, operable program or batch file. I get this error when I try to glance at the files of my folder. cmd opened regularly(not as an admin). I've recently downloaded anaconda for python.During the installation process, there was a time when I allowed to add a PATH which was not recommended. 'ls' used to work well be.
asked Apr 25 muktaa 34.6k points
0 votes
1 answer 5 views
5 views
Problem: I have an installation of Git for Windows, but when I try to use the git command in Command Prompt, I get the following error: 'git' is not recognized as an internal or external command, operable program or batch file. How do I fix this problem?
asked Apr 25 muktaa 34.6k points
0 votes
1 answer 7 views
7 views
Problem: Following instructions found here (and elsewhere) I added '%USERPROFILE%\AppData\Roaming\Python\Python37\Scripts\aws' to Path (tried with and without \aws at the end).I clicked OK everywhere and restartet the CLI, but I am still getting "'aws' is not recognized as ... file." when typing aws at the command prompt (I restarted it after the path update). Any ideas what I might be missing?
asked Apr 25 sumaiya simi 43.9k points
0 votes
1 answer 13 views
13 views
Problem: First off I would like to say I've seen the previous questions on this site, I've tried every solution but none fit my use case or solves my problem. I am having trouble with the g++ complier being recognized, I've included this path: C:\ ... has double quotes around it , so i tried editing the path to contain double quotes around it and the path automaticlly changes back after saving.
asked Apr 25 sumaiya simi 43.9k points
0 votes
1 answer 1 view
1 view
Problem: Whenever I try and run mycommand.exe from my windows cmd.exe terminal, I get this error: ''mycommand.exe' is not recognized as an internal or external command, operable program or batch file' Then I also experienced a similar error when I tried to run C:\Program Files\My-App\Mobile.exe ''C:\Program' is not recognized as an internal or external command, operable program or batch file'
asked Apr 25 sumaiya simi 43.9k points