我正在尝试安装Python Edgar库
我使用了以下代码
pip install edgar
我收到以下错误
Building wheel for python-levenshtein (setup.py): started
ERROR: Command errored out with exit status 1:
等等
Running setup.py install for python-levenshtein: finished with status 'error'
creating build
creating buildlib.win-amd64-3.8
creating buildlib.win-amd64-3.8Levenshtein
copying LevenshteinStringMatcher.py -> buildlib.win-amd64-3.8Levenshtein
copying Levenshtein__init__.py -> buildlib.win-amd64-3.8Levenshtein
running egg_info
writing python_Levenshtein.egg-infoPKG-INFO
writing dependency_links to python_Levenshtein.egg-infodependency_links.txt
writing entry points to python_Levenshtein.egg-infoentry_points.txt
writing namespace_packages to python_Levenshtein.egg-infonamespace_packages.txt
writing requirements to python_Levenshtein.egg-inforequires.txt
writing top-level names to python_Levenshtein.egg-infotop_level.txt
reading manifest file 'python_Levenshtein.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
writing manifest file 'python_Levenshtein.egg-infoSOURCES.txt'
copying Levenshtein_levenshtein.c -> buildlib.win-amd64-3.8Levenshtein
copying Levenshtein_levenshtein.h -> buildlib.win-amd64-3.8Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for python-levenshtein
ERROR: Command errored out with exit status 1:
我不知道当我运行时出现了什么问题
import edgar
我得到错误
ModuleNotFoundError: No module named 'edgar'
看来
pip install edgar
不起作用的是
pip install python-edgar
这解决了的上述问题