Eric Cosatto <[email protected]> added the comment:
Hi,
I have a full install of Python from the installer in:
C:\Program Files\Python37
Then, I added libraries using pip.
Everything works fine from the command line Python.
Then, I build my C++ application with VisualStudio and link to the Python DLLs.
I start Python inside my app using the usual code:
Py_SetPath(...);
Py_SetProgramName(...);
Py_InitializeEx(0);
PyRun_SimpleString("import sys");
PyRun_SimpleString("print(sys.path)");
PyRun_SimpleString("print(sys.prefix)");
PyRun_SimpleString("print(sys.executable)");
>> ['C:\\Program Files\\Python37\\DLLs', 'C:\\Program Files\\Python37\\Lib',
>> 'C:\\Program Files\\Python37', 'C:\\Program
>> Files\\Python37\\Lib\\site-packages']
>> C:\Program Files\Python37
>> C:\Program Files\Python37\python.exe
So, everything works fine at this point. If I run the following:
PyRun_SimpleString("import numpy");
>> ImportError("No module named 'numpy.core._multiarray_umath'")
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36716>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com