SimonDanisch / MIT18065

Course Dependencies
Other
12 stars 8 forks source link

Getting when trying to import autograd.numpy #7

Open lingluanwh opened 7 years ago

lingluanwh commented 7 years ago

When I run: using PyCall @pyimport autograd.numpy as np

I get the following error:

ERROR: LoadError: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'> ImportError('No module named autograd.numpy',)

in pyerr_check at C:\Users\Hao Wu.julia\v0.5\PyCall\src\exception.jl:56 [inlined] in pyerr_check at C:\Users\Hao Wu.julia\v0.5\PyCall\src\exception.jl:61 [inlined] in macro expansion at C:\Users\Hao Wu.julia\v0.5\PyCall\src\exception.jl:81 [inlined] in pyimport(::String) at C:\Users\Hao Wu.julia\v0.5\PyCall\src\PyCall.jl:370 in include_from_node1(::String) at .\loading.jl:488 while loading C:\Users\Hao Wu\Dropbox\svd_via_manopt\Pymanopt.jl, in expression starting on line 410

I have installed autograd.

lingluanwh commented 7 years ago

I think the issue is related to I installed multiple versions of python on my computer and one has to link PyCall to the right one. See more at

https://github.com/JuliaPy/PyCall.jl#specifying-the-python-version