看板 Python 關於我們 聯絡資訊
小弟在 import twstock時候就會遇到以下valueError問題 不知道要如何解? 謝謝版上大大 Traceback (most recent call last): File ".\6-1.py", line 1, in <module> import twstock File "C:\Users\alan\AppData\Local\Programs\Python\Python38\lib\site-packages\ twstock\__init__.py", line 3, in <module> from twstock import stock File "C:\Users\alan\AppData\Local\Programs\Python\Python38\lib\site-packages\ twstock\stock.py", line 18, in <module> from .codes import codes File "C:\Users\alan\AppData\Local\Programs\Python\Python38\lib\site-packages\ twstock\codes\__init__.py", line 1, in <module> from .fetch import __update_codes File "C:\Users\alan\AppData\Local\Programs\Python\Python38\lib\site-packages\ twstock\codes\fetch.py", line 14, in <module> from lxml import etree File "type.pxd", line 9, in init lxml.etree ValueError: builtins.type size changed, may indicate binary incompatibility. Expected 880 from C header, got 864 from PyObject -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.8.195.184 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1581001132.A.4A9.html
outshaker: 有可能你安裝的lxml版本太舊了 02/07 05:23
abr810416: 大量台股資料可以考慮finmind 02/07 21:07