A possible solution for using the janus interface on MacOS with docker
Experimenting with the Janus module on docker Janus is a new development that comes with swi-prolog version 9: janus documentation Having attempted to run the example in the above link, I tried the following steps to install and use the spacy python package: pip install spacy docker run -it --rm --network host -v $(pwd):/opt/janus\ -v /path/to/python3.11/site-packages:/opt/python\ swipl ?- consult('/opt/janus/test_janus.pl'). ?- py_add_lib_dir('/opt/python'). ?- noun("This is a sentence.", Noun). ERROR: Python 'ImportError': ERROR: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. ERROR: Python stack: ERROR: File "/opt/python/spacy/__init__.py", line 6, in module ERROR: from .er...