Search code examples
pythonpython-3.6python-venvhealpy

Healpy installation failure


I am trying to install healpy in a venv I created. I successfully installed numpy and astropy but when i run the following:

pip install healpy

or

pip install -U healpy

the installation fails with a very long message, which starts with some

UserWarning: Unknown Extension options: 'cython_directives'

and ends with a RED text ending in:

failed with error code 1 in /private/var/folders/bp/bvhb5c9n54n0pyyf6694m_z80000gn/T/pip-install-fvug_ld0/healpy/

can somebody help me correctly installing healpy in my venv?


Solution

  • I figured I'd post my solution here since a better one is lacking.

    pip install healpy==1.10.2
    

    and

    pip install healpy==1.10.3
    

    worked and successfully installed the respective version of healpy in my venv.

    For some reason more recent versions result in the error mentioned in the question.