Spacy: error of symbolic link privilege not held when installing en model

Created on 24 Mar 2017  路  5Comments  路  Source: explosion/spaCy

  • Operating System: Win 7
  • Python Version Used: 3.5
  • spaCy Version Used: 1.7
  • Environment Information:
    I can download the file successfully, but an error occurred and ended the install process. Any hints for solving the issue. Thanks!!!
    default
install windows

Most helpful comment

Thanks for the report! I just did a quick search for the error message and it looks like it might be caused by insufficient permissions. Do you have admin privileges and if not, could you try run python -m spacy link en_core_web_sm en as admin? If this doesn't help, this issue might be related to the more general problems with symlinks on Windows (see #909).

In the meantime, you can also import the model as a module and call its load() method (this doesn't require any symlinks):

import spacy
import en_core_web_sm  # or any other model you downloaded via spacy download or pip

nlp = en_core_web_sm.load()

You could also copy the model data into the spacy/data directory, or create a symlink to the model data manually. When you call spacy.load('model_name') spaCy will look for folders and symlinks of that name in the spacy/data directory.

All 5 comments

Thanks for the report! I just did a quick search for the error message and it looks like it might be caused by insufficient permissions. Do you have admin privileges and if not, could you try run python -m spacy link en_core_web_sm en as admin? If this doesn't help, this issue might be related to the more general problems with symlinks on Windows (see #909).

In the meantime, you can also import the model as a module and call its load() method (this doesn't require any symlinks):

import spacy
import en_core_web_sm  # or any other model you downloaded via spacy download or pip

nlp = en_core_web_sm.load()

You could also copy the model data into the spacy/data directory, or create a symlink to the model data manually. When you call spacy.load('model_name') spaCy will look for folders and symlinks of that name in the spacy/data directory.

Thanks for your help ines.
I ran python -m spacy link en_core_web_sm en as admin and everything works now.

Perfect, I'm glad it worked. Thanks for updating!

Thanks, worked for me:
python -m spacy link en_core_web_sm en

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings