我是python中的新手,并且很难在sp中使用spacy接口。 所以我在命令行使用了这个
python -m spacy download en_core_web_md
它的大小约为1GB,最后它会尝试安装en_core_web_md但不知何故我收到大量错误消息
Exception:
Traceback (most recent call last):
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\commands\install.py", line 324, in run
requirement_set.prepare_files(finder)
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\req\req_set.py", line 634, in _prepare_file
abstract_dist.prep_for_dist()
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\req\req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\req\req_install.py", line 417, in run_egg_info
self.setup_py, self.link,
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pi
p\req\req_install.py", line 387, in setup_py
import setuptools # noqa
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\se
tuptools\__init__.py", line 10, in <module>
from setuptools.extern.six.moves import filter, map
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\se
tuptools\extern\__init__.py", line 1, in <module>
from pkg_resources.extern import VendorImporter
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 3039, in <module>
@_call_aside
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 3023, in _call_aside
f(*args, **kwargs)
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 3052, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 649, in _build_master
ws = cls()
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 642, in __init__
self.add_entry(entry)
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 698, in add_entry
for dist in find_distributions(entry, True):
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 1953, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 1467, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 1827, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 1707, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "C:\Users\mydir\AppData\Local\Continuum\Anaconda3\lib\site-packages\pk
g_resources\__init__.py", line 1647, in load
mtime = os.stat(path).st_mtime
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\
Users\\mydir\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\setup
tools-27.2.0-py3.5.egg'
ImportError: No module named 'en_core_web_md'
如果不重新下载文件,我需要做什么才能重新尝试?
谢谢