apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Other
3.67k stars 308 forks source link

arm64 not support install xgboost ? #94

Open shijianliang001 opened 3 years ago

shijianliang001 commented 3 years ago

when I pip install xgboost, error.

ERROR: Command errored out with exit status 1: /Users/jianliang.shi/miniforge3/bin/python3.9 /Users/jianliang.shi/miniforge3/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/26/xmw079yd2cb3lthwvz7w7zn40000gn/T/pip-build-env-s_8eex8n/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.tuna.tsinghua.edu.cn/simple -- wheel setuptools 'Cython>=0.29.18' 'numpy==1.14.5; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'pybind11>=2.4.3' Check the logs for full command output.

iRonJ commented 3 years ago

I did

brew install libomp
python3 -m pip install xgboost

and it worked. Also you're on python3.9 but this package only works on 3.8, are you using the right python install?