FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\user\AppData\Local\Temp\_MEI213642\twstock\codes\tpex_equities.csv'
請問要怎麼解決?
ab15963qw
@ab15963qw
剛剛安裝twstock,出現了這問題?
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 /Users/yangjunyu/PycharmProjects/untitled4/nre.py Traceback (most recent call last): File "/Users/yangjunyu/PycharmProjects/untitled4/nre.py", line 1, in <module> import twstock File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/twstock/init.py", line 3, in <module> from twstock import stock File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/twstock/stock.py", line 22, in <module> raise e File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/twstock/stock.py", line 18, in <module> from .codes import codes File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/twstock/codes/init.py", line 1, in <module> from .fetch import __update_codes File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/twstock/codes/fetch.py", line 14, in <module> from lxml import etree ModuleNotFoundError: No module named 'lxml'
python3.7 macos 10.14
ChiehFuChan
@bluewings1211
@ab15963qw 若出現 ModuleNotFoundError: No module named 'lxml' ,就在多裝 lxml 套件即可。這點尚未寫在說明文件中