0

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

Dubs
  • 11

2 Answers2

1

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

1

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:

RobC
  • 22,977
  • 20
  • 73
  • 80
Swetank Poddar
  • 1,257
  • 9
  • 23