Windows执行powershell脚本
无法运行激活Python虚拟化脚本的问题是因为windows的安全策略
使用Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
可以允许执行远程签名的脚本,即可激活Python
虚拟环境;后面的-Scope
规定了策略的作用周期
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine RemoteSigned
感谢扫码支持

