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
python3 -m venv myvenv
source ./myvent/bin/activate
source ./myvent/bin/activate.fish
或
source ./myvent/bin/activate.zsh
sudo apt install python3.12-venv