Search code examples
djangopython-3.xvirtual-environment

Python venv not creating virtual environment


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


Solution

  • I was having this same problem. I was able to get venv working by uninstalling Python and reinstalling it (I'm using the Anaconda distribution). The py -m venv test command still doesn't have any output after running it, but now it creates a folder for me and I can activate the test environment.