Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Can't Install on Mac OSX 11.x (Big Sur) #217

Open
bxg682 opened this issue May 18, 2021 · 3 comments
Open

Can't Install on Mac OSX 11.x (Big Sur) #217

bxg682 opened this issue May 18, 2021 · 3 comments

Comments

@bxg682
Copy link

bxg682 commented May 18, 2021

Assuming I understand the below error correctly, could you please add support for installation on Mac OSX 11 (Big Sur)? Thanks for all you do!

running install
running bdist_egg
running egg_info
writing requirements to sklearn_contrib_py_earth.egg-info/requires.txt
writing sklearn_contrib_py_earth.egg-info/PKG-INFO
writing top-level names to sklearn_contrib_py_earth.egg-info/top_level.txt
writing dependency_links to sklearn_contrib_py_earth.egg-info/dependency_links.txt
reading manifest file 'sklearn_contrib_py_earth.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'pyearth/test/pathological_data'
writing manifest file 'sklearn_contrib_py_earth.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-11.2-x86_64/egg
running install_lib
running build_py
UPDATING build/lib.macosx-11.2-x86_64-2.7/pyearth/_version.py
set build/lib.macosx-11.2-x86_64-2.7/pyearth/_version.py to '0.1.0'
running build_ext
building 'pyearth._util' extension
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pyearth/_util.c -o build/temp.macosx-11.2-x86_64-2.7/pyearth/_util.o
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.2'
error: command 'cc' failed with exit status 1

@kevin-dietz
Copy link

@bxg682 This is probably more of a Big Sur & Python 2.7 issue than it is a py-earth issue. Try installing on Python 3 instead.

@diffent
Copy link

diffent commented Dec 27, 2022

fyi, i was able to install and run py-earth on macos 12.6.1 (monterey) that had python 3.10.8 using a slightly different build sequence than noted in the readme:

git clone https://github.com/scikit-learn-contrib/py-earth.git
cd py-earth
sudo python setup.py install --cythonize

then when you try to run the example script noted in the readme, dont try to run it from the py-earth folder, put that script in another folder and run it from there (or else an error will occur due to it trying to load modules from the py-earth folder you just built from, which causes runtime errors)

found this out by combining some info from various stack overflow posts and other posts in this repo

@yirending
Copy link

yirending commented Jul 11, 2023

git clone https://github.com/scikit-learn-contrib/py-earth.git
cd py-earth
sudo python setup.py install --cythonize

Thank you! I am able to install pyearth this way on Ubuntu 20.04 and Python 3.10.

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

No branches or pull requests

4 participants