Closed
Description
pythonnet 2.4.0.0 (clone of master)
python 3.6.0 (anaconda)
Windows 10
I am trying the following code:
using (var gil = Py.GIL()) {
dynamic sys = Py.Import("sys");
string s = sys.executable;
dynamic np = Py.Import("numpy");
}
The import of sys and the sys.executable works.
The import of numpy throws Python.Runtime.PythonException: {"ModuleNotFoundError : No module named 'numpy'"}
import numpy works fine from the command line python.
Environment
- Pythonnet version:
- Python version:
- Operating System:
Details
-
Describe what you were trying to get done.
TODO
-
What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
print('TODO')
- If there was a crash, please include the traceback here.
print('TODO')
Metadata
Metadata
Assignees
Labels
No labels