Difficulty Installing Pixell and Healpy Python Libraries on M1 iMacs
Posted: June 14 2023
Hello everyone,
Many members of our group are having difficulty with installing/importing the healpy and pixell python libraries using pip or conda install on our Apple iMacs with M1 processors. Our devices are all running macOS Ventura 13.4, and we are using jupyter notebook to run our python code.
Installing pixell appears to display the same error message for two of our computers: “Failed to prepare Mac OS X properly.” Whether or not we attempt to install in the terminal or in a jupyter notebook, the same error message shows:
Installing the healpy library, on the other hand, was successful, but is causing problems during importing for some of our devices and not others. For instance, one of our computers displays an error with a method being imported:
On another computer however, the problems with healpy were not encountered at all, and it was successfully imported as well.
Notably, both of these libraries installed perfectly fine on our personal computers, on both a Macbook Pro as well as a Windows laptop (running WSL). They were successfully installed just using pip and conda. So, we were suspecting that the new M1 chip architecture on our iMacs may be playing a role in these difficulties in importing python libraries.
We were wondering if similar problems were encountered by others when working with the pixell or healpy python libraries (or any other python libraries) on the new Apple iMacs, and if anyone had found a solution/an explanation for the error. Thank you for your help!
Many members of our group are having difficulty with installing/importing the healpy and pixell python libraries using pip or conda install on our Apple iMacs with M1 processors. Our devices are all running macOS Ventura 13.4, and we are using jupyter notebook to run our python code.
Installing pixell appears to display the same error message for two of our computers: “Failed to prepare Mac OS X properly.” Whether or not we attempt to install in the terminal or in a jupyter notebook, the same error message shows:
Installing the healpy library, on the other hand, was successful, but is causing problems during importing for some of our devices and not others. For instance, one of our computers displays an error with a method being imported:
On another computer however, the problems with healpy were not encountered at all, and it was successfully imported as well.
Notably, both of these libraries installed perfectly fine on our personal computers, on both a Macbook Pro as well as a Windows laptop (running WSL). They were successfully installed just using pip and conda. So, we were suspecting that the new M1 chip architecture on our iMacs may be playing a role in these difficulties in importing python libraries.
We were wondering if similar problems were encountered by others when working with the pixell or healpy python libraries (or any other python libraries) on the new Apple iMacs, and if anyone had found a solution/an explanation for the error. Thank you for your help!