Hi, I just installed Intel Anaconda on Windows 10. Everything working fine. Numpy/Scipy/etc are nice and fast, linking to MKL, etc. Painless.
But (unrelated to python) now I need to create a DLL in order to create an external function that can be called by a 3rd party app (COMSOL).
I can think of lots of ways to make DLL's but they all seem to require a C compiler. Do I already have one installed somewhere as part of conda?
[This is conda version 4.7.11 if that makes a difference]
Thanks for any feedback, John
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Parallel Computing
[Update] Found them. It seems to have installed 2015 MSVC . I went ahead and also downloaded community editions of 2017 and 2019. I'm ready for DLL's now .. what could go wrong....
OK, the answer is _mklinit which seems to have disappeared down a morass of search paths in conda. If I activate intel conda base in powershell and then run python then everything great. But if I fire up Py_Initialize, etc, from MSVC then it screws up. Frustrating. This seems to be a well reported complaint and the answer is "check your paths", which is only mildly helpful.
[Update...] I tried many (all?!!) combinations of Py_SetPythonHome and Py_SetPath and grew increasingly frustrated, but finally found a solution. I had to Py_SetPythonHome(L"C:\\ProgramData\\Anaconda3\\"); before Py_Initialize but I did not have to set path, however, I *did* have to launch VS 2019 from within Anaconda PowerShell command line. Everything else failed... The command to launch was itself a bit tricky, namely:
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe"
One step forward...