【问题标题】:How do I get started with analyzing XBRL in python?如何开始在 python 中分析 XBRL?
【发布时间】:2016-08-28 09:05:13
【问题描述】:

如何开始分析 XBRL 数据?

我听说python-xbrl 应该有一些问题,我很难找到文档和示例。

我听说Arelle 应该是您想要使用的。但我无法弄清楚如何安装它而不会出现任何奇怪的错误。

我试过了: 1) pip install git+https://github.com/Arelle/Arelle.git 哪个返回

error: [Error 3] The system cannot find the path specified: 'c:\\users\\bc0655\\appdata\\local\\temp\\pip-    gkza0x-    build\\.eggs\\3to2-1.1.1-py2.7.egg\\lib3to2\\fixes/*.*'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\bc0655\appdata\local\temp\pip-gkza0x-build\

2) pip install -e git+https://github.com/Arelle/Arelle.git #egg=Arelle

返回我:

Exception:
Traceback (most recent call last):
  \pip\basecommand.py", line 209, in main status = self.run(options, args)
  \pip\commands\install.py", line 287, in run wheel_cache
  \pip\basecommand.py", line 270, in populate_requirement_set wheel_cache=wheel_cache
  \pip\req\req_install.py", line 230, in from_line wheel_cache=wheel_cache, constraint=constraint)
  \pip\req\req_install.py", line 77, in __init__req = pkg_resources.Requirement.parse(req)
  \pip\_vendor\pkg_resources\__init__.py", line 3036, in parse req, = parse_requirements(s)
ValueError: need more than 0 values to unpack

3) 从 zip 安装(希望避免这种情况) 返回与 2) 相同的错误。

我应该:

  • 尝试找出我的 Arelle 安装失败的原因(建议/帮助将不胜感激
  • 尝试其他模块
  • 使用 python-xbrl 构建我的系统

【问题讨论】:

  • 你修好了吗?我得到了同样的错误,可以告诉你这与 xbrl 无关,因为我没有它。对我来说听起来像是一个 pip bug。
  • @sorin 很抱歉告诉你不。我现在已经使用 python-xbrl 来解决该解决方案。 - 让我知道如果你想出任何办法。这很可能是一个 pip 错误。

标签: python-2.7 xbrl arelle


【解决方案1】:

试试这个,它对我有用。 转到当前路径并尝试使用以下命令

pip install arelle

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多