Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when building from source on ARM M1 Mac #5244

Closed
c-bohn opened this issue Feb 19, 2021 · 2 comments
Closed

Problem when building from source on ARM M1 Mac #5244

c-bohn opened this issue Feb 19, 2021 · 2 comments

Comments

@c-bohn
Copy link

c-bohn commented Feb 19, 2021

Description

Hi,

Since there is no version of scikit-image for ARM processors yet, I'm trying to install it from source on my M1 Mac.
I followed the instructions provided in the README and installing the dependencies with

$ pip install -r requirements.txt

worked fine.
However on the next step:

$ pip install .

I get the following error:

WARNING: Discarding file:///Users/user/Desktop/scikit-image-main. Command errored out with exit status 1: /Users/user/miniforge3/envs/tf_env/bin/python3.8 /Users/user/miniforge3/envs/tf_env/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/p8/9nljsf7n003g7xnhz07_1fkh0000gn/T/pip-build-env-p9ajomro/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools<=51.0.0' 'Cython>=0.29.18' 'numpy==1.16.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy; python_version>='"'"'3.10'"'"'' Check the logs for full command output.
ERROR: Command errored out with exit status 1: /Users/user/miniforge3/envs/tf_env/bin/python3.8 /Users/user/miniforge3/envs/tf_env/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/p8/9nljsf7n003g7xnhz07_1fkh0000gn/T/pip-build-env-p9ajomro/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools<=51.0.0' 'Cython>=0.29.18' 'numpy==1.16.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy; python_version>='"'"'3.10'"'"'' Check the logs for full command output.

Is there anything straightforward I can do to make it work, or do I need to wait until an ARM compatible version is available?

Thanks in advance for any help!

Version information

>>> import sys
>>> print(sys.version)
3.8.6 | packaged by conda-forge | (default, Jan 25 2021, 22:55:00) 
[Clang 11.0.1 ]
>>> import platform
>>> print(platform.platform())
macOS-11.1-arm64-arm-64bit
>>> import numpy
>>> print("numpy version: {}".format(numpy.__version__))
numpy version: 1.20.1
@hmaarrfk
Copy link
Member

https://github.com/conda-forge/scikit-image-feedstock

conda-forge is already building the arm package for you.

Since you are using miniforge, why do you want to use the pip package?

Building up infrastructure for Mac OSX is going to take alot of time.
Centralized projects like conda-forge make that easier to manage when new computers arrive.

Maybe try

conda install scikit-image

I also notice you are on python 3.8. I don't think python 3.8 is well supported by mac arm64. I would try 3.9.

@c-bohn
Copy link
Author

c-bohn commented Feb 20, 2021

Thanks a lot!
With

conda install scikit-image

it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants