python运行虚拟化环境

 

1  创建虚拟化环境

python3 -m venv myvenv

 

2  进入虚拟化环境

source ./myvent/bin/activate

 

3  如何不是用bash,用fish或者zsh

source ./myvent/bin/activate.fish

source ./myvent/bin/activate.zsh

 

4 ubuntu可能默认没有这个包

sudo apt install python3.12-venv

posted on 2026-01-26 10:42  toong  阅读(1)  评论(0)    收藏  举报