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

Install models to users homedirectory instead of globally #1220

Closed
wants to merge 1 commit into from

Conversation

leezu
Copy link

@leezu leezu commented Jul 25, 2017

Use pip install --user. It is not advisable to install the packages globally as this not only requires root access on the machine, but also messes with files managed by the system package manager (apt-get, emerge, ...)

Use pip install --user. It is not advisable to install the packages globally as this not requires root access on the machine, but also messes with files managed by the system package manager (apt-get, emerge, ...)
@honnibal
Copy link
Member

The most common workflow is to install to virtualenv -- specifying --user here breaks that, right?

The right thing would be to figure out whether spaCy was installed with --user, and if so, install the model that way too. I haven't been able to figure out how to do that. Any ideas?

@leezu
Copy link
Author

leezu commented Jul 26, 2017 via email

@follnoob
Copy link

Maby you can add a flag '--user' to the download command like

python -m spacy download en --user

so you can use your appropriated way of installation.

@honnibal
Copy link
Member

I think @follnoob 's suggestion is good. I'm going to close this PR and open an enhancement ticket instead.

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

Successfully merging this pull request may close these issues.

3 participants