Reputation: 11
I have installed django and then tried using the command line to make a virtual environment then oops it gives me this error
"'"virtualenv"' is not recognized as an internal or external command, operable program or batch file."
what should I do to correct this
Upvotes: 0
Views: 75
Reputation: 1291
You have to install "virtualenv". It's not inbuilt.
If you are a beginner I would suggest using anaconda prompt. It's easier to create/activate/deactivate environments in it.
For more information look here:
Upvotes: 1
Reputation: 29
If you are on python3 , use python3 -m venv <env-name>
, env-name being your preferred name for your virtual env.
Also you get that error because virtualenv is not installed on your system. You can install with pip install virtualenv
Upvotes: 1