作者motorrockA (motor)
看板Python
标题[问题] twstock遇到的ValueError
时间Thu Feb 6 22:58:50 2020
小弟在 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://webptt.com/cn.aspx?n=bbs/Python/M.1581001132.A.4A9.html
1F:→ outshaker: 有可能你安装的lxml版本太旧了 02/07 05:23
2F:推 abr810416: 大量台股资料可以考虑finmind 02/07 21:07