VSCode/PyCharm解决“无法加载文件 ***\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本”

解决"无法加载文件 ***\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本"

博主在使用pycharm终端想用 Conda 初始化 Windows PowerShell 终端时

powershell 复制代码
conda init powershell

报错:无法加载文件 ***\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本

查阅发现VSCode也有这个问题,应该是因为都用的Windows自带的PowerShell。评论区有人给出的命令可以解决此问题

powershell 复制代码
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

执行命令后,再执行conda init powershell关掉终端重新打开就OK了

相关推荐
慧都小项3 天前
Python 跨文件重构怎么验证?PyCharm 用法查找、重构预览与测试流程
python·重构·pycharm·单元测试
Xiu Yan3 天前
Python 数据分析:Pandas DataFrame 零基础入门教程
python·jupyter·pycharm·numpy·pandas
2501_915909063 天前
移动端开发工具链怎么组合比较好,iOS、Android、跨端三套配置方案
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
ai大模型-探索者3 天前
Git在PyCharm中的使用完全指南
pycharm·gitee
伞伞悦读3 天前
【第39期】Python 第三方包安装详解:pip、conda、requirements、版本锁定和镜像源
python·conda·pip
sunoo-2293 天前
【ARM嵌入式学习笔记Day6】一文打通i.MX6ULL时钟体系:PLL/PFD/预分频+滞回比较器全解析
arm开发·笔记·vscode·单片机·imx6ull·汇编语言
明天…ling3 天前
gitee与vscode远程连接
vscode·gitee
2501_915918414 天前
iOS编程用什么软件好?主流工具Xcode、AppCode、CodeRunner与新兴快蝎对比
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
__pop_4 天前
VSCode Remote SSH 远程连接 glibc 高版本依赖问题
vscode
Xiu Yan4 天前
Python 数据分析:Pandas Series 零基础入门教程
python·jupyter·pycharm·numpy·pandas