Skip to content

import numpy fails #490

Closed
Closed
@Jivko1212

Description

@Jivko1212

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

    print('TODO')
  • If there was a crash, please include the traceback here.
    print('TODO')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions