-
Notifications
You must be signed in to change notification settings - Fork 41
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
zsh: illegal hardware instruction python (mac m1 silicon) #310
Comments
Can you give me more details about your system info? You can get them by running: import platform
print("Platform Version: {0}, {1}".format(platform.platform(), platform.architecture()[0]))
print("Python Version:", platform.python_version())
import abess
print("Package Version:", abess.__version__) |
Platform Version: macOS-10.16-x86_64-i386-64bit, 64bit |
Thanks. It is a tough issue. We have to pay some time to fix it. If you are urgent to use |
The following is a step-by-step procedure for solving this issue.
mv Miniforge3-MacOSX-arm64.sh ~/
Chmod +x Miniforge3-MacOSX-arm64.sh
./Miniforge3-MacOSX-arm64.sh
After executing these steps, I believe the If you meet any questions, feel free to contact us. |
Hi @JiaqiHu2021 ,we have updated a new version in Pypi. We believe the newest version can successfully executed the following code: >>> from abess.linear import abessLogistic
>>> from sklearn.datasets import load_breast_cancer
>>> from sklearn.pipeline import Pipeline
>>> from sklearn.metrics import make_scorer, roc_auc_score
>>> from sklearn.preprocessing import PolynomialFeatures
>>> from sklearn.model_selection import GridSearchCV
>>> pipe = Pipeline([('poly', PolynomialFeatures(include_bias=False)), ('alogistic', abessLogistic())])
>>> param_grid = {'poly__interaction_only': [True, False],'poly__degree': [1, 2, 3]}
>>> scorer = make_scorer(roc_auc_score, greater_is_better=True)
>>> grid_search = GridSearchCV(pipe, param_grid, scoring=scorer, cv=5)
>>> X, y = load_breast_cancer(return_X_y=True)
>>> grid_search.fit(X, y) You can run pip uninstall abess
pip install --no-cache-dir abess==0.4.2 to reinstall the latest If you still meet any problem, feel free to contact us. |
After upgrading to the latest version, I successfully ran the above code. |
I run the following code in the terminal, I get the error "zsh: illegal hardware instruction python"
The text was updated successfully, but these errors were encountered: