PowerShell报错:无法加载文件C:\Users\server\Documents\windowsPowerShell\profile.ps1...
前言
在安装过Anaconda后使用PowerShell报错:
报错原因
- PowerShell默认禁止运行脚本,但是因为安装Anaconda后再启动PowerShell时需要运行脚本,所以会报错。
- 可以通过在PowerShell中执行
get-ExecutionPolicy
语句验证这点,如图:
表示在PowerShell中运行脚本是禁止的
解决方案(步骤)
- “以管理员身份运行”PowerShell,如图:
- 在PowerShell中执行
set-ExecutionPolicy RemoteSigned
,然后输入Y
,如图:
- 之后再运行PowerShell即可恢复正常,如图:
PowerShell报错:无法加载文件C:\Users\server\Documents\windowsPowerShell\profile.ps1...相关推荐
- powershell激活conda失败;无法加载文件 C:\Users\user\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本
在执行vscode中 按F5调试python脚本时报以下错误 Exception has occurred: ImportError DLL load failed: 找不到指定的程序. File & ...
- powershell配置anaconda及解决【无法加载文件C:\Users\xxx\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本】的问题
配置 Anaconda安装教程 安装好Anaconda后,cmd中可以正常使用,但powershell中无法activate环境(在我电脑上的表现为activate后通过conda env list查 ...
- 问题随记 ——【Windows】无法加载文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1
文章目录 问题描述 解决方法 问题描述 打开 PowerShell 出现以下报错: . : 无法加载文件 C:\Users\Administrator\Documents\WindowsPowerSh ...
- 无法加载文件 C:\Users\haoqi\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本
anaconda 卸载重装后,再次用VScode运行代码会报如下错误: 无法加载文件 C:\Users\haoqi\Documents\WindowsPowerShell\profile.ps1, 因 ...
- 【vscode】执行C++文件时出现错误法加载文件 C:\Users\hp\Documents\WindowsPowerShell\profile.ps1
一.问题背景 Windows PowerShell 尝试新的跨平台 PowerShell https://aka.ms/pscore6 . : 无法加载文件 C:\Users\hp\Documents ...
- . : 无法加载文件 C:\Users\1\Documents\WindowsPowerShell\profile.ps1
解决方案: 以管理员身份运行PowerShell 执行:get-ExecutionPolicy,回复Restricted,表示状态是禁止的 执行:set-ExecutionPolicy RemoteS ...
- 未对文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1 进行数字签名。无法在当前系统上运行该脚本。
未对文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1 进行数字签名.无法在当前系统上运行该脚本. 根据文档修改发现 也 ...
- VsCode配置Python开发环境后运行代码会报错“无法加载文件 D:\Code\xxx\poetry-demo\.venv\Scripts\Activate.ps1”
问题描述:在VsCode中配置Python开发环境后运行代码会报错"无法加载文件 D:\Code\xxx\poetry-demo\.venv\Scripts\Activate.ps1&quo ...
- 执行 taro init myApp 报错 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\taro.ps1
执行 taro init myApp 报错 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\taro.ps1,因为在此系统上禁止运行脚本. taro ...
- 在vs code中使用yarn报错 - 无法加载文件 C:\Users\zzh\AppData\Roaming\npm\yarn.ps1
yarn : 无法加载文件 C:\Users\zzh\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本.有关详细信 息,请参阅 http://go.microsof ...
最新文章
- Linux中重定向--转载
- ASP.NET Web API 特性
- Android宫格动态列,Android实现宫格图片连续滑动效果
- 如何查看计算机配置和名称,如何查看电脑本机配置和跑分
- windows phone 7 中文天气预报应用--来源http://www.cnblogs.com/liulunet/archive/2011/08/17/2141696.html...
- 中的数组怎么转成结构体_传说中的“衡水体”应该怎么练?
- Java多线程学习二十六:原子类是如何利用 CAS 保证线程安全的?
- append和extend区别
- Java多线程(二)——多线程基本特性
- Mediator(中介者)
- 【短时能量】基于matlab语音信号短时能量【含Matlab源码 1719期】
- Flash Player10一个非常牛的功能SaveBitmap
- 100部超级好电影,100组优秀的字体设计(不看后悔系列)
- 树莓派Raspberry Pi 4b+实现摄像头拍照和实时监控
- 在软件开发的早期阶段为什么要进行可行性研究?应该从哪些方面研究目标系统的可行性?
- 登录系统提示请求数据成功!但回调方法出错;请检查自定义load回调函数。有没有大佬能给解答下这种怎么处理
- vue +springboot项目部署(nginx)
- 微信服务器接口配置程序
- 企立方集团:拼多多场景推广怎么设置
- 域名信息收集 dnsenum