I am using Anaconda and when trying to use PyCall in Julia I get the following error:
ERROR: PyError ($(Expr(:escape, :(ccall(#= C:\Users\mschwarz.julia\packages\PyCall\BD546\src\pyeval.jl:38 =# @pysym(:PyEval_EvalCode), PyPtr, (PyPtr, PyPtr, PyPtr), o, globals, locals))))) <class ‘FileNotFoundError’>
FileNotFoundError(2, ‘No such file or directory’)
File “C:\Users\mschwarz.julia\packages\PyCall\BD546\src\pyeval.jl”, line 1, in
const Py_single_input = 256 # from Python.h
Stacktrace:
[1] pyerr_check
@ C:\Users\mschwarz.julia\packages\PyCall\BD546\src\exception.jl:62 [inlined]
[2] pyerr_check
@ C:\Users\mschwarz.julia\packages\PyCall\BD546\src\exception.jl:66 [inlined]
[3] _handle_error(msg::String)
@ PyCall C:\Users\mschwarz.julia\packages\PyCall\BD546\src\exception.jl:83
The file pyeval.jl does exist in the specified path.
I tried the following which didn’t help:
ENV[“PYTHON”] = “”
Pkg.build(“PyCall”)using PyCall, Conda