- wsl 中 code . 启动vs code
- python -m venv seven 安装当前python环境
- source ./seven/bin/activate 进入
- pip install 自己拓展
- 在vs code中打开命令面板(Ctrl+Shift+P或Cmd+Shift+P)
- 输入Python: Select Interpreter并选择2中的python环境
ps:新建了其他python项目后,也可以用source ./seven/bin/activate 直接让当前的项目使用seven这个python的环境