本文介绍了Python Venv没有创建虚拟环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用当前的Django项目创建虚拟环境
I'm trying to create a virtual environment for my current Django project using
python3 -m venv env
但是该命令不会使用bin/include/lib文件夹创建任何目录.我到底在这里想念什么?
however the command doesn't create any directory with bin/include/lib folders.What exactly am I missing here?
推荐答案
我遇到了同样的问题.我可以通过卸载Python并重新安装来使venv工作(我正在使用Anaconda发行版). py -m venv test
命令运行后仍然没有任何输出,但是现在它为我创建了一个文件夹,我可以激活测试环境.
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没有创建虚拟环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!