系统相关
首页 > 系统相关> > windows pycharm启动虚拟环境报错:+ FullyQualifiedErrorId : UnauthorizedAccess

windows pycharm启动虚拟环境报错:+ FullyQualifiedErrorId : UnauthorizedAccess

作者:互联网

当我在pycharm里面创建虚拟环境后,但是不能使用
在这里插入图片描述
进入到 \venv\Scripts, 启动虚拟环境也是报错。

在这里插入图片描述

activate : 无法加载文件 F:\odoo12\odoo12e\venv\Scripts\activate.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中
的 about_Execution_Policies。
所在位置 行:1 字符: 1

  • activate
  •  + CategoryInfo          : SecurityError: (:) [],PSSecurityException
     + FullyQualifiedErrorId : UnauthorizedAccess
    

在这里插入图片描述

解决办法

在搜索框内搜索windows powershell ise,然后右击以管理员身份运行。

在这里插入图片描述
输入Y
然后输入:Set-ExecutionPolicy RemoteSigned, 再启动虚拟环境即可
在这里插入图片描述

标签:venv,windows,UnauthorizedAccess,虚拟环境,报错,Scripts,activate
来源: https://blog.csdn.net/weixin_42464956/article/details/122185665