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

illegal hardware instruction python -m spacy download en_core_web_sm error for M1 Apple Mac users #2

Open
paulheider opened this issue Apr 19, 2022 · 1 comment

Comments

@paulheider
Copy link

I just tried to load and run the scoring script on an M1 mac. I ran into some issues with spacy and the new hardware.

Specifically, I get this error when I try to download the spacy model:

illegal hardware instruction python -m spacy download en_core_web_sm

Following the advice here (explosion/spaCy#9397), I installed spacy directly via conda and then created a new conda environment like so:

conda install -c conda-forge spacy

conda create -n n2c2SDoH-py3.8 python=3.8
conda activate n2c2SDoH-py3.8
pip install --upgrade pip
pip install -r ~/git/brat_scoring/requirements.txt
python -m spacy download en_core_web_sm

I'm posting here to provide the solution that worked for me in case other M1 users run into the same issue.

(I don't think there is an obvious software solution to this problem just the need to update the README.)

@Lybarger
Copy link
Owner

Thank you for the tip Paul.

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