1
votes

I have installed Anaconda 2019.03 for Windows Installer in Windows 10. When typing anything which starts with conda on Powershell getting error:

conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I have tried below solutions, which did not solved the problem:

  • Added path as shown here
  • As shown here, tried Method 1 and when opening Anaconda Prompt it says:

'C:\Users\user-name\Anaconda3\Scripts\activate.bat' is not recognized as an internal or external command, operable program or batch file.

  • Looked at above direction, there is not activate.bat file there.
  • Uninstall and install as shown on metod 2, also did not changed anything.
  • Opened Anaconda Powershell Prompt in addition to 'conda' is not recognized also getting below error:

& : The term 'C:\Users\user-name\Anaconda3\shell\condabin\conda-hook.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

  • Actually, Path C:\Users\user-name\Anaconda3\shell do not exists when I have looked.

Additional information listed:

  • I have installed MySQL on my PC
  • C:\Users\user-name\Anaconda3\envs is empty
  • Avira antivirus installed
  • Python 3.7.3 installed before Anaconda

What should I do to solve this problem?

1
Keep in mind that if you update the path environment variable, that change is not automatically propagated to existing open PowerShell consoles.Bill_Stewart
@Bill_Stewart I did not change evns' path.isifzade
@isifzade In the "Added path as shown here" part you put in, you should have modified your Path variable. Once you have changed this, you will need to close and open all your powershell sessions. Can we assume that you Windows user name is user-name or have you actually replaced it with your proper username? (you can run whoami on either CMD or powershell to find out your username)Shadowzee
@Shadowzee I have on purpose replaced my original user name with user-name to post a question here. In reality I have used the original user name of PC.isifzade
@isifzade I can't help much more. I found this question via the powershell tag and if the command isn't present, then its either not installed correctly or the path hasn't been added into the environment variables properly. Can you confirm that the directory you added into the environment variables contains the executable "conda"? You might have linked the wrong folder (The linked question says to link Scripts not Shell)Shadowzee

1 Answers

-1
votes

I have installed miniconda. Now when I open the Powershell and writing conda --version, it returns the result instead of error