Skip to content

Error at the step: Install spaCy language models #253

@ranijames

Description

@ranijames

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions