更新时间:2023-10-27 19:00:04
在Python 3.6及更高版本中,不建议使用pyvenv模块。改为使用以下单线:
In Python 3.6+, the pyvenv module is deprecated. Use the following one-liner instead:
python3 -m venv <myenvname>
这是推荐的方式由Python社区创建虚拟环境。
This is the recommended way to create virtual environments by the Python community.