美文网首页
Powershell启动时运行conda错误

Powershell启动时运行conda错误

作者: XBruce | 来源:发表于2021-11-17 16:07 被阅读0次

The term 'conda' is not recognized as the name of a cmdlet

Solution worked for me:
Step 1:
You must be logged into Windows as Administrator then do this
Right-click the Start Button, choose Powershell (admin)

Paste this into Powershell and hit Enter

set-executionpolicy remotesigned

Step 2:

  1. Install the latest Anaconda + PowerShell
  2. Open Anaconda prompt, and type "conda init powershell"
  3. Open PowerShell and it should work.

Basically creates a file at "%userprofile%\Documents\WindowsPowerShell\profile.ps1" that PowerShell will execute every time it initiates, connecting it to PowerShell.

Source: https://hackf5.medium.com/how-to-enable-anaconda-in-powershell-7-on-windows-394ba62c3f9c

相关文章

网友评论

      本文标题:Powershell启动时运行conda错误

      本文链接:https://www.haomeiwen.com/subject/dpadtrtx.html