Conda package installation

40 views
Skip to first unread message

spiri...@gmail.com

unread,
Apr 2, 2018, 4:02:19 PM4/2/18
to Machine Learning for OpenCV
Greetings,

I'm trying to install the conda package that is mentioned in page #17, I'm getting the following message at the command prompt:

'conda' is not recognized as an internal or external command,
operable program or batch file.

I have already downloaded the latest code that is mentioned in page #16, what I should write in the command prompt? I have tried different ways, but still getting the same message.


Thanks in advance.
 

Michael Beyeler

unread,
Apr 3, 2018, 3:02:50 AM4/3/18
to Machine Learning for OpenCV
Hi,

It sounds like the path variable is not set up correctly (so Windows doesn't know where to look for the conda script). Usually this should be done automatically when downloading Anaconda from https://www.anaconda.com/download and running the .exe file.

But, you can set the path variable yourself. By default, Anaconda installs to C:\Anaconda3, and the conda script lives in C:\Anaconda3\Scripts. Therefore you need to add C:\Anaconda3 as well as C:\Anaconda3\Scripts to your path variable.
There are two ways you can do this:
  • From the command prompt, type:
    set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\
    (But you'll have to do this every time you open up a new command prompt)
  • Hit the windows key -> enter environment -> choose from settings -> edit environment variables for your account -> select Path variable -> Edit -> New. Then type in C:\Anaconda3, and repeat for C:\Anaconda3\Scripts.
You can find more information here: https://stackoverflow.com/a/44597801.

Let me know if that doesn't work.

Best,
Michael
Reply all
Reply to author
Forward
0 new messages