Python 虚拟环境 创建虚拟环境 python -m venv [floder_name] 激活虚拟环境 windows 在PowerShell中需要首先执行 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser来确保可以使用PS1文件 activate.bat or Activate.ps1 Linux ./activate pip 打包 pip freeze