环境 python -m venv venv
venv\Scripts\activate 激活环境失败 解决方案
输入get-executionpolicy
PS D:\flaskBlog> get-executionpolicy
Restricted
PS D:\flaskBlog> set-executionpolicy remotesigned
PS D:\flaskBlog> get-executionpolicy(最后检查是否更改成功)
重启VSCode,执行venv\Scripts\activate
查看环境激活成功。
标签:Python3.10,venv,get,Scripts,activate,executionpolicy,激活,flaskBlog From: https://blog.51cto.com/u_15867943/6008546