I try to call sklearn using ruby, for this I use
PyCall such that:
require 'pycall/import' include PyCall::Import pyfrom :sklearn, import: :datasets
However, using this last line I have this error (for Python I use anaconda):
/usr/local/lib/ruby/gems/2.4.0/gems/pycall-1.0.3/lib/pycall/import.rb:46:in `import_moduleâ: : dlopen(/Users/tay/anaconda3/lib/python3.6/site-packages/scipy/sparse/linalg/isolve/_iterative.cpython-36m-darwin.so, 2): Symbol not found: _main (PyCall::PyError)
Why is this happening, and how can I fix it?