python - 如何从 https ://github. com/ONSBigData/parsing_company_accounts 在服务器上安装 xbrl_parser?

标签 python python-3.x pip xbrl

我正在尝试按照 https://github.com/ONSBigData/parsing_company_accounts 中提供的示例从公司内部电子记录中提取数据。 。

我在服务器上安装 xbrl_parser 时遇到问题。当我在终端 pip3 install xbrl_parser 或 pip install xbrl_parser 中运行时,出现错误。

Collecting xbrl_parser
Using cached https://files.pythonhosted.org/packages/9c/72/f8b6d58dfe085a8e9f2b6bf05795f9deb071372d476eb2100f6c0355d803/xbrl_parser-0.1.tar.gz

这有效,但在我得到之后立即:

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o3r0rklc/xbrl-parser/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o3r0rklc/xbrl-parser/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-o3r0rklc/xbrl-parser/pip-egg-info
     cwd: /tmp/pip-install-o3r0rklc/xbrl-parser/
Complete output (5 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-o3r0rklc/xbrl-parser/setup.py", line 8, in <module>
    long_description=open('README.md').read(),
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------

错误:命令出错,退出状态为 1:python setup.py Egg_info 检查日志以获取完整的命令输出。

这是我第一次尝试安装不是主要的 python 库,所以我不确定从 git 获取库时是否需要做一些不同的事情。

请告知如何安装。

最佳答案

这是发行版中的一个错误:作者忘记将文件 README.md 包含到发行包中。

向他们的 issue tracker 报告错误.

此外,您无法直接从 Github 安装:存储库中没有 setup.py

关于python - 如何从 https ://github. com/ONSBigData/parsing_company_accounts 在服务器上安装 xbrl_parser?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59802483/

相关文章:

python - 如何在C和Python之间交换时间

python /SQLAlchemy : Connecting to a MySQL instance with Cleartext Authentication enabled

python-3.x - 无法在 Windows Python 3.5 上安装 Levenshtein distance 包

python - 如何修复安装 Jupyter Notebook 时发生的错误?

Python 警告过滤器未捕获 InsecurePlatformWarning

python - 无法在 Jupyter 中导入 Keras

python-3.x - 使用 Python Etree 解析 XML 并返回指定的标签,而不管命名空间

python - 通过检查 pandas 数据框来替换单词

Python 3 的 OAuth 端口

python - 如何制作 pip "dry-run"?