Deprecation Error

#1
by Dyeungling - opened

When attempting pip install via example code I recieve the following OS error:
OSError: [E050] Can't find model 'en_pipeline'. It doesn't seem to be a Python package or a valid path to a data directory.

Prior to this I receive this error off the pip install which is likely the root issue:
ERROR: Invalid wheel filename (invalid version): 'en_pipeline-any-py3-none-any'

Would anyone know how I may resolve this? do I need to locally install or force change my versions so I can run the model?

Total cell output:
OSError Traceback (most recent call last)
Cell In[2], line 5
3 # Using spacy.load().
4 import spacy
----> 5 nlp = spacy.load("en_pipeline")
7 # Importing as module.
8 import en_pipeline

File .\Python\Python314\Lib\site-packages\spacy_init_.py:74, in load(name, vocab, disable, enable, exclude, config)
50 def load(
51 name: Union[str, Path],
52 *,
(...) 57 config: Union[Dict[str, Any], Config] = util.SimpleFrozenDict(),
58 ) -> Language:
59 """Load a spaCy model from an installed package or a local path.
60
61 name (str): Package name or model path.
(...) 72 RETURNS (Language): The loaded nlp object.
73 """
---> 74 return util.load_model(
75 name,
76 vocab=vocab,
77 disable=disable,
78 enable=enable,
79 exclude=exclude,
80 config=config,
81 )

File .Python\Python314\Lib\site-packages\spacy\util.py:531, in load_model(name, vocab, disable, enable, exclude, config)
529 if name in OLD_MODEL_SHORTCUTS:
530 raise IOError(Errors.E941.format(name=name, full=OLD_MODEL_SHORTCUTS[name])) # type: ignore[index]
--> 531 raise IOError(Errors.E050.format(name=name))

OSError: [E050] Can't find model 'en_pipeline'. It doesn't seem to be a Python package or a valid path to a data directory.

Sign up or log in to comment