-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels