前言

在安装过Anaconda后使用PowerShell报错:

报错原因

  • PowerShell默认禁止运行脚本,但是因为安装Anaconda后再启动PowerShell时需要运行脚本,所以会报错。
  • 可以通过在PowerShell中执行 get-ExecutionPolicy 语句验证这点,如图:

表示在PowerShell中运行脚本是禁止的

解决方案(步骤)

  1. “以管理员身份运行”PowerShell,如图:
  2. 在PowerShell中执行 set-ExecutionPolicy RemoteSigned,然后输入 Y,如图:
  3. 之后再运行PowerShell即可恢复正常,如图:

PowerShell报错:无法加载文件C:\Users\server\Documents\windowsPowerShell\profile.ps1...相关推荐

  1. powershell激活conda失败;无法加载文件 C:\Users\user\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本

    在执行vscode中 按F5调试python脚本时报以下错误 Exception has occurred: ImportError DLL load failed: 找不到指定的程序. File & ...

  2. powershell配置anaconda及解决【无法加载文件C:\Users\xxx\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本】的问题

    配置 Anaconda安装教程 安装好Anaconda后,cmd中可以正常使用,但powershell中无法activate环境(在我电脑上的表现为activate后通过conda env list查 ...

  3. 问题随记 ——【Windows】无法加载文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1

    文章目录 问题描述 解决方法 问题描述 打开 PowerShell 出现以下报错: . : 无法加载文件 C:\Users\Administrator\Documents\WindowsPowerSh ...

  4. 无法加载文件 C:\Users\haoqi\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本

    anaconda 卸载重装后,再次用VScode运行代码会报如下错误: 无法加载文件 C:\Users\haoqi\Documents\WindowsPowerShell\profile.ps1, 因 ...

  5. 【vscode】执行C++文件时出现错误法加载文件 C:\Users\hp\Documents\WindowsPowerShell\profile.ps1

    一.问题背景 Windows PowerShell 尝试新的跨平台 PowerShell https://aka.ms/pscore6 . : 无法加载文件 C:\Users\hp\Documents ...

  6. . : 无法加载文件 C:\Users\1\Documents\WindowsPowerShell\profile.ps1

    解决方案: 以管理员身份运行PowerShell 执行:get-ExecutionPolicy,回复Restricted,表示状态是禁止的 执行:set-ExecutionPolicy RemoteS ...

  7. 未对文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1 进行数字签名。无法在当前系统上运行该脚本。

    未对文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1 进行数字签名.无法在当前系统上运行该脚本. 根据文档修改发现 也 ...

  8. VsCode配置Python开发环境后运行代码会报错“无法加载文件 D:\Code\xxx\poetry-demo\.venv\Scripts\Activate.ps1”

    问题描述:在VsCode中配置Python开发环境后运行代码会报错"无法加载文件 D:\Code\xxx\poetry-demo\.venv\Scripts\Activate.ps1&quo ...

  9. 执行 taro init myApp 报错 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\taro.ps1

    执行 taro init myApp 报错 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\taro.ps1,因为在此系统上禁止运行脚本. taro ...

  10. 在vs code中使用yarn报错 - 无法加载文件 C:\Users\zzh\AppData\Roaming\npm\yarn.ps1

    yarn : 无法加载文件 C:\Users\zzh\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本.有关详细信 息,请参阅 http://go.microsof ...

最新文章

  1. Linux中重定向--转载
  2. ASP.NET Web API 特性
  3. Android宫格动态列,Android实现宫格图片连续滑动效果
  4. 如何查看计算机配置和名称,如何查看电脑本机配置和跑分
  5. windows phone 7 中文天气预报应用--来源http://www.cnblogs.com/liulunet/archive/2011/08/17/2141696.html...
  6. 中的数组怎么转成结构体_传说中的“衡水体”应该怎么练?
  7. Java多线程学习二十六:原子类是如何利用 CAS 保证线程安全的?
  8. append和extend区别
  9. Java多线程(二)——多线程基本特性
  10. Mediator(中介者)
  11. 【短时能量】基于matlab语音信号短时能量【含Matlab源码 1719期】
  12. Flash Player10一个非常牛的功能SaveBitmap
  13. 100部超级好电影,100组优秀的字体设计(不看后悔系列)
  14. 树莓派Raspberry Pi 4b+实现摄像头拍照和实时监控
  15. 在软件开发的早期阶段为什么要进行可行性研究?应该从哪些方面研究目标系统的可行性?
  16. 登录系统提示请求数据成功!但回调方法出错;请检查自定义load回调函数。有没有大佬能给解答下这种怎么处理
  17. vue +springboot项目部署(nginx)
  18. 微信服务器接口配置程序
  19. 企立方集团:拼多多场景推广怎么设置
  20. 域名信息收集 dnsenum

热门文章

  1. 【首发】 ubuntu20.04安装matlab2021b/matlab2020b
  2. 数据库的系统组成包括哪些?
  3. coreldraw怎样定数等分_coreldraw 里怎么将线段等分?
  4. albedo diffuse specular
  5. d3dx9_43.dll如何修复
  6. 游戏数据库数据管理系统开发体会
  7. 10款值得收藏的网站数据实时分析工具
  8. mysql 根据英文首字母来查询汉字
  9. [bzoj4540][莫队算法]序列
  10. HHUOJ 1895 果冻豆