Run Set-ExecutionPolicy Bypass script when opening a new terminal

Hi. My company has some policies and every time I want to activate my environment in the PowerShell terminal I have to run first

Set-ExecutionPolicy Bypass -Scope Process

I saw that there's an option to activate the environment every time I open a new terminal. Can I specify to run the previous line of command before attempting to activate the environment? I have PyCharm 2022.3 (Professional Edition).

Thanks in advance!

评论操作 固定链接
Hello,

Unfortunately, there is no such option, but you can use CMD, which doesn't require tweaking policies in order to activate the environment.
1

请先登录再写评论。