Powershell启动时运行conda错误

2021-11-17  本文已影响0人  XBruce

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

上一篇 下一篇

猜你喜欢

热点阅读