Python venv not creating virtual environment

Shury picture Shury · Sep 26, 2019 · Viewed 11.1k times · Source

I'm trying to create a virtual environment for my current Django project using

python3 -m venv env

however the command doesn't create any directory with bin/include/lib folders. What exactly am I missing here?

enter image description here

Answer

Naveen Jain picture Naveen Jain · Sep 29, 2019

Sometime system's path environment is not aware of virtualenv.exe

solution:
install virtualenv

pip install virtualenv  

run command in the directory where you want virtual environment :

python3 -m virtualenv venv