Advertisement

python难以进入虚拟环境

阅读量:

在进入虚拟环境的过程中发生了错误:

复制代码
    .\activate : 无法加载文件 D:\work\boneage\boneage\venv\Scripts\activate.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
    所在位置 行:1 字符: 1
    + .\activate
    + ~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [],PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    
    
      
      
      
      
      
      
    

处理方式:
通过管理员权限启动命令提示符:

在这里插入图片描述

执行 powershell 命令

![在这里插入图片描述](https

全部评论 (0)

还没有任何评论哟~