still cannot "import ants" on MacOSSee original GitHub issue
Still experiencing the same issue reported in https://github.com/ANTsX/ANTsPy/issues/26 on Mac OSX. This includes
pip installing using the new wheel:
antspy-0.1.5-cp36-cp36m-macosx_10_7_x86_64.whl or the
pip install command listed on the README.
It still looks like the installation doesn’t do the ITK/VTK checks and installs that are in the
setup.py file. I’ve tried manually executing the bash scripts that are called in
setup.py and set the environment variables, etc, but still get the same error.
However, installing in linux (specifically Ubuntu 16.04 in a Docker container) using the README
pip install command works just fine.
- Created 5 years ago
- Comments:20 (9 by maintainers)
Top GitHub Comments
python setup.py install is what I tried. Xcode 9.2, macOS 10.13.6.
As a workaround, this old fork
https://github.com/stnava/ANTsPy.git compiled without any problems.
I’m getting the same error as @ejolly above when I try to install
antspy using method one on my mac. In particular, when I run
pip install https://github.com/ANTsX/ANTsPy/releases/download/Weekly/antspy-0.1.4a0-cp36-cp36m-macosx_10_7_x86_64.whl
ImportError: dlopen(/Users/iaincarmichael/anaconda/envs/py36/lib/python3.6/site-packages/ants/lib/antiAlias.cpython-36m-darwin.so, 2): Library not loaded: libvtkRenderingOpenGL2-8.1.1.dylib Referenced from: /Users/iaincarmichael/anaconda/envs/py36/lib/python3.6/site-packages/ants/lib/antiAlias.cpython-36m-darwin.so Reason: image not found
I’m using python 3.6 on a macOS Version 10.13.4.