189 words
1 minute
有关Copilot Cli无法终端执行命令的问题
2026-09-09
No Tags

其实就是找不到powershell的执行路径;

ycx8clhn6pgi0ye5-001.png

非常神秘的bug. 需要去ms store再下载一个powershell, 这样子就修好了(实在是有点幽默的);

并且这个powershell同样也可以继承先前的脚本, 只是需要在启动这里重新进去

ycx8clhn6pgi0ye5-002.png

然后conda init一下, 塞进一个psl脚本就好了;

init以后每次启动都会执行一次conda的初始化环境, 很方便cli端做一些自动流水线时指定环境.

可以看到, 在init以后, 每次启动powershell最大的区别就是上面多了一行”Loading System Profile Hook”

至于为什么init以及conda如何用可以跳转 MiniConda:在IDE中也能激活conda环境

ycx8clhn6pgi0ye5-003.png

有关Copilot Cli无法终端执行命令的问题
https://fuwari.vercel.app/posts/notion-3d52a2475d578174816efe96e9e931f9/
Author
Axon
Published at
2026-09-09
License
CC BY-NC-SA 4.0