简体   繁体   English

如何开始在 Python 中分析 XBRL?

[英]How do I get started with analyzing XBRL in python?

How do i get started analyzing XBRL data?如何开始分析 XBRL 数据?

I've heard python-xbrl should have some problems, and I'm having difficulties finding documention and examples.我听说python-xbrl应该有一些问题,而且我很难找到文档和示例。

I've heard that Arelle is supposed to be what you want to use.我听说Arelle应该是你想要使用的。 But I simple can't figure out how to install it without getting any weird errors.但我不知道如何安装它而不会出现任何奇怪的错误。

I've tried: 1) pip install git+ https://github.com/Arelle/Arelle.git Which returns我试过: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 2) pip install -e git+ https://github.com/Arelle/Arelle.git #egg=Arelle

Which returns me:哪个返回我:

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) Install from zip (would like to avoid this) Returns same errors as 2). 3)从zip安装(希望避免这种情况)返回与2相同的错误)。

Should I:我应该:

  • Try to figure out why my Arelle installations fails (suggestions / help would be appreciated <3 )尝试找出我的 Arelle 安装失败的原因(建议/帮助将不胜感激 <3)
  • Try another module尝试另一个模块
  • Build my system with python-xbrl使用 python-xbrl 构建我的系统

try this, it worked for me.试试这个,它对我有用。 Go to the current path and try using below command转到当前路径并尝试使用以下命令

pip install arelle pip安装arelle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM