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 at the step: Install spaCy language models #253

Open
ranijames opened this issue Jun 25, 2024 · 0 comments
Open

Error at the step: Install spaCy language models #253

ranijames opened this issue Jun 25, 2024 · 0 comments

Comments

@ranijames
Copy link

Dear All,
I have followed the steps to set up a virtual env in R for spacy.
https://www.rdocumentation.org/packages/spacyr/versions/1.3.0

However, at this step, Install spaCy language models, I am getting the following error message.

reticulate::py_install("en_core_web_sm", envname = Sys.getenv("SPACY_PYTHON", unset = "r-spacyr"))
Using virtual environment '~/python_env_spacyr' ...
+ /home/ctg/python_env_spacyr/bin/python -m pip install --upgrade --no-user en_core_web_sm
ERROR: Could not find a version that satisfies the requirement en_core_web_sm (from versions: none)
ERROR: No matching distribution found for en_core_web_sm
Error: Error installing package(s): 'en_core_web_sm'

The steps I have taken before are installing Python in R, setting up a virtual environment, and installing Python.

python_exe <- reticulate::install_python()
reticulate::virtualenv_create("~/python_env_spacyr", python = "/home/ctg/.pyenv/versions/3.10.14/bin/python3.10")
Sys.setenv(SPACY_PYTHON = "~/python_env_spacyr")
reticulate::use_virtualenv(Sys.getenv("SPACY_PYTHON", unset = "r-spacyr"))
reticulate::py_install("spacy", envname = Sys.getenv("SPACY_PYTHON", unset = "r-spacyr")

The error is at this step,
reticulate::py_install("en_core_web_sm", envname = Sys.getenv("SPACY_PYTHON", unset = "r-spacyr"))
I would greatly appreciate any suggestions or help you can give.

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

1 participant