python-3.x - ModuleNotFoundError:没有名为“edgar”的模块
问题描述
我正在尝试安装 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 build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Levenshtein
copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-3.8\Levenshtein
copying Levenshtein\__init__.py -> build\lib.win-amd64-3.8\Levenshtein
running egg_info
writing python_Levenshtein.egg-info\PKG-INFO
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing requirements to python_Levenshtein.egg-info\requires.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.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-info\SOURCES.txt'
copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-3.8\Levenshtein
copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-3.8\Levenshtein
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
这样就解决了上面的问题
推荐阅读
- reactjs - 在带有条件的 React 组件中(用于过滤目的),在哪里放置 Spinner?
- r - 查找邻居的邻居
- javascript - Javascript点击功能不适用于自动打开
- reactjs - React Router Redirect - 表单提交和重定向尝试加载 HomeRoute
- c++ - 如何使数组以单词而不是数字的形式出现
- c - 用分隔符连接 C 中的字符串
- go - Golang 中的 HTTP 请求如何附加 cert.pem 和 key.pem?
- reactjs - 在 React JS 中的 HTTP POST 请求中传递多个参数
- google-cloud-firestore - 当 Firestore 设置最大并发连接数时,这是否意味着 *active*?
- python - python随机猜词程序