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

error of symbolic link privilege not held when installing en model #915

Closed
fodkastir opened this issue Mar 24, 2017 · 5 comments
Closed
Labels
install Installation issues windows Issues related to Windows

Comments

@fodkastir
Copy link

  • 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
@ines
Copy link
Member

ines commented Mar 24, 2017

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.

@ines ines added install Installation issues windows Issues related to Windows labels Mar 24, 2017
@fodkastir
Copy link
Author

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

@ines
Copy link
Member

ines commented Mar 24, 2017

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

@abhibisht89
Copy link

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

@lock
Copy link

lock bot commented May 7, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
install Installation issues windows Issues related to Windows
Projects
None yet
Development

No branches or pull requests

3 participants