The module used to create and manage virtual environments is called venv.
1
2
3
4
python3 -m venv myvenvpath # 可以在myvenvpath前加--copies选项,但会占用更多的磁盘空间
source myvenvpath/bin/activate 激活它
deactivate 退出当前环境
参考
https://www.liaoxuefeng.com/wiki/1016959663602400/1019273143120480