Hi everybody, I am new to Julia and I would like to use the sympy functionalities.
I have Julia 1.8 installed on Mac OS, with python 3.
The SymPy package throws the error below.
Any clue?
Thanks
Joe
Hi, I upgraded my installation to 1.9. I also removed the brew installation of python and left only conda in my system. Conda and brew are know to be not working well together. Now Pycall works.
julia> using PyCall
julia> sympy = PyCall.pyimport_conda("sympy", "sympy")
PyObject <module 'sympy' from '/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sympy/__init__.py'>
julia> sympy.pi
PyObject pi
The SymPy package also works flawlessly:
julia> using SymPy
julia> x = symbols("x")
x
julia> y = sin(pi*x)
sin(π⋅x)
julia> y(1)
0
I think it was a conda+brew problem, a problem that users should be warned about.