python新建项目没有venv,Python Venv没有创建虚拟环境

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?

python新建项目没有venv,Python Venv没有创建虚拟环境_第1张图片

解决方案

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.

你可能感兴趣的:(python新建项目没有venv,Python Venv没有创建虚拟环境)