close

[Solved] ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to use virtualenv for my project but I am facing following error ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file Error Occurs ?

I am trying to use virtualenv for my project but I am facing following error.

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

How To Solve ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file Error ?

  1. How To Solve 'virtualenv' is not recognized as an internal or external command, operable program or batch file Error ?

    To Solve 'virtualenv' is not recognized as an internal or external command, operable program or batch file Error You just need to reinstall virtualenv. First of all you need to uninstall virtualenv with this command: pip uninstall virtualenv Then just reinstall with this command: pip install virtualenv Second solution is First of all open project folder where you want to use virtualenv. Now run this command on command prompt python -m virtualenv after running this command: run .\scripts\activate now you can see this type of line on cmd-prompt (django) C:\Users\ssc\Desktop\MyProject> Then main folder name before the source path. now you can install any modules for your project that belongs to that main folder only.

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

    To Solve 'virtualenv' is not recognized as an internal or external command, operable program or batch file Error You just need to reinstall virtualenv. First of all you need to uninstall virtualenv with this command: pip uninstall virtualenv Then just reinstall with this command: pip install virtualenv Second solution is First of all open project folder where you want to use virtualenv. Now run this command on command prompt python -m virtualenv after running this command: run .\scripts\activate now you can see this type of line on cmd-prompt (django) C:\Users\ssc\Desktop\MyProject> Then main folder name before the source path. now you can install any modules for your project that belongs to that main folder only.

Solution 1: reinstall virtualenv

You just need to reinstall virtualenv. First of all you need to uninstall virtualenv with this command.

pip uninstall virtualenv

Then just reinstall with this command.

pip install virtualenv

Solution 2: Follow this step

Just follow this step to resolve this error.

  1. First of all open project folder where you want to use virtualenv.
  2. Now run this command on command prompt python -m virtualenv
  3. after running this command: run .\scripts\activate now you can see this type of line on cmd-prompt (django) C:\Users\ssc\Desktop\MyProject>
  4. Then main folder name before the source path. now you can install any modules for your project that belongs to that main folder only.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment