(1)runfile(‘D:/zwPython/zwrk/1_Quant_TensorFlow/test.py’, wdir=’D:/zwPython/zwrk/1_Quant_TensorFlow’)
This command failed to be executed because an error occurred while trying to get the file code from Spyder’s editor. The error was:
An exception has occurred, use %tb to see the full traceback.
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x8c in position 60: illegal multibyte sequence
解决办法:删除中文注释和程序中的中文
(2)runfile(‘
D:/zwPython/zwrk/1_Quant_TensorFlow/未命名7.py’, wdir=’
D:/zwPython/zwrk/1_Quant_TensorFlow’)
Reloaded modules: zsys, ztools, ztools_str, ztools_web, ztools_data, ztools_tq, zpd_talib, ztools_datadown, ztools_draw2025
This command failed to be executed because an error occurred while trying to get the file code from Spyder’s editor. The error was:
An exception has occurred, use %tb to see the full traceback.
FileNotFoundError: [Errno 2] No such file or directory: ‘D:\\zwPython\\zwrk\\1_Quant_TensorFlow\\未命名7.py’
解决办法:文件命名用英文
(3)出行其他问题,运行Spyder reset.exe,再打开Spyder.exe

发布者:股市刺客,转载请注明出处:https://www.95sca.cn/archives/907157
站内所有文章皆来自网络转载或读者投稿,请勿用于商业用途。如有侵权、不妥之处,请联系站长并出示版权证明以便删除。敬请谅解!