Skip to content
Advertisement

Anaconda (Python) – Cmder integration on Windows 10

I’m having some troubles in having Cmder working with Python through Anaconda on Windows 10 64bit.

I got Anaconda working pretty well, tested to plot something with matplotlib and it works just great with Anaconda Prompt. However, if I try to run the same .py file under Cmder, I got the following error:

Traceback (most recent call last):
  File "C:ProgramDataAnaconda3libsite-packagesnumpycore__init__.py", line 16, in <module>
    from . import multiarray
ImportError: DLL load failed: The specified module could not be found.

I guess it has something to do with the path of the environment vars, but I have already added to the path the following:

  1. C:ProgramDataAnaconda3
  2. C:ProgramDataAnaconda3Scripts
  3. C:ProgramDataAnaconda3Lib

Any hints?

Thanks

Advertisement

Answer

Assume your Anaconda3 installation path is C:ProgramDataAnaconda3. On your Cmder settings StartupTasks, add a new predefined tasks

name:

whatever

and command:

cmd /k ""%ConEmuDir%..init.bat"" & C:ProgramDataAnaconda3Scriptsactivate.bat C:ProgramDataAnaconda3

To find the Anaconda path use the following command on Anaconda Prompt:

where anaconda

For example C:ProgramDataAnaconda3Scriptsanaconda.exe, the path will be C:ProgramDataAnaconda3

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement