During the install of the language model, following the existing documentation (step 7c: Download and link Language model as per your requirement) receiving the error below:
(botenv) (base) C:\VA>python -m spacy download en_core_web_md
Collecting en_core_web_md==2.1.0 from https://github.com/explosion/spacy-models/releases/download/en_core_web_md-2.1.0/en_core_web_md-2.1.0.tar.gz#egg=en_core_web_md==2.1.0
Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_md-2.1.0/en_core_web_md-2.1.0.tar.gz (95.4MB)
100% |████████████████████████████████| 95.4MB ...
Complete output from command python setup.py egg_info:
C:\VA\botenv\lib\site-packages\setuptools\_importlib.py:23: UserWarning: `importlib-metadata` version is incompatible with `setuptools`.
This problem is likely to be solved by installing an updated version of `importlib-metadata`.
warnings.warn(msg) # Ensure a descriptive message is shown.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\VA\botenv\lib\site-packages\setuptools\__init__.py", line 18, in <module>
from setuptools.dist import Distribution
File "C:\VA\botenv\lib\site-packages\setuptools\dist.py", line 33, in <module>
from ._importlib import metadata
File "C:\VA\botenv\lib\site-packages\setuptools\_importlib.py", line 39, in <module>
disable_importlib_metadata_finder(metadata)
File "C:\VA\botenv\lib\site-packages\setuptools\_importlib.py", line 12, in disable_importlib_metadata_finder
import importlib_metadata
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata\__init__.py", line 466, in <module>
__version__ = version(__name__)
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata\__init__.py", line 433, in version
return distribution(package).version
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata\__init__.py", line 406, in distribution
return Distribution.from_name(package)
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata\__init__.py", line 175, in from_name
dists = resolver(name)
File "C:\VA\botenv\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 886, in find_distributions
found = self._search_paths(context.name, context.path)
AttributeError: 'str' object has no attribute 'name'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-wgzyu9e3\en-core-web-md\
You are using pip version 19.0.3, however version 22.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Error described below:
Release 17.3 RU17
CA Service Desk Manager
The implementations of pip and the importlib-metadata need to be updated within Python.
Step 1: Run "python -m pip install -U pip" to update pip component to the latest release:
Step 2: Try and run the "python -m spacy download en_core_web_md" command to install the language model. It may fail due to the error:
C:\VA\botenv\lib\site-packages\setuptools\_importlib.py:23: UserWarning: `importlib-metadata` version is incompatible with `setuptools`.
This problem is likely to be solved by installing an updated version of `importlib-metadata`.
If you experience this, run the command "pip install --upgrade importlib-metadata" to update the importlib-metadata package to the latest release
Step 3: run the "python -m spacy download en_core_web_md" command to install the language model. It should be successful.