The Python Oracle

Conda command is not recognized on Windows 10

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping

--

Chapters
00:00 Question
00:54 Accepted answer (Score 266)
02:03 Answer 2 (Score 114)
05:15 Answer 3 (Score 24)
05:49 Answer 4 (Score 23)
06:30 Thank you

--

Full question
https://stackoverflow.com/questions/4459...

Question links:
https://www.continuum.io/downloads

Accepted answer links:
[https://msdn.microsoft.com/en-us/library...]: https://msdn.microsoft.com/en-us/library...(

Answer 2 links:
[image]: https://i.stack.imgur.com/11aGz.png
[How do I set system environment variables on Windows?]: https://superuser.com/questions/949560/h...
[Activation script initialization fron ]: https://www.anaconda.com/conda-4-6-relea.../
[Conda 4.6 Release]: https://www.anaconda.com/conda-4-6-relea.../
[How do I prevent Conda from activating the base environment?
]: https://stackoverflow.com/a/57974390/510...

Answer 3 links:
[image]: https://i.stack.imgur.com/VQkQT.png

Answer 4 links:
[image]: https://i.stack.imgur.com/UZtBK.png
[image]: https://i.stack.imgur.com/XHjHo.png
https://medium.com/@GalarnykMichael/inst...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #windows10 #anaconda #conda

#avk47



ACCEPTED ANSWER

Score 316


In Windows, you will have to set the path to the location where you installed Anaconda3 to.

For me, I installed anaconda3 into C:\Anaconda3. Therefore you need to add C:\Anaconda3 as well as C:\Anaconda3\Scripts\ to your path variable, e.g. set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\.

You can do this via powershell (see above, https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ), or hit the windows key → enter environment → choose from settingsedit environment variables for your account → select Path variable → EditNew.

To test it, open a new dos shell, and you should be able to use conda commands now. E.g., try conda --version.




ANSWER 2

Score 25


The newest version of the Anaconda installer for Windows will also install a windows launcher for "Anaconda Prompt" and "Anaconda Powershell Prompt". If you use one of those instead of the regular windows cmd shell, the conda command, python etc. should be available by default in this shell.

enter image description here




ANSWER 3

Score 24


When you install anaconda on windows now, it doesn't automatically add Python or Conda.

If you don’t know where your conda and/or python is, you type the following commands into your anaconda prompt

enter image description here

Next, you can add Python and Conda to your path by using the setx command in your command prompt. enter image description here

Next close that command prompt and open a new one. Congrats you can now use conda and python

Source: https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444




ANSWER 4

Score 16


If you want to use Anaconda in regular cmd on windows you need to add several paths to your Path env variable.

Those paths are (instead of Anaconda3 the folder may be Anaconda2 depending on the Anaconda version on your PC):

\Users\YOUR_USER\Anaconda3
\Users\YOUR_USER\Anaconda3\Library\mingw-w64\bin
\Users\YOUR_USER\Anaconda3\Library\usr\bin
\Users\YOUR_USER\Anaconda3\Library\bin
\Users\YOUR_USER\Anaconda3\Scripts
\Users\YOUR_USER\Anaconda3\bin