简体   繁体   中英

Error dialects = eval(dialects.strip()) File "<string>", line 0 when try to create exe file in PyInstaller

Console error:

  File "C:\Users\semnome\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\hooks\hook-sqlalchemy.py", line 31, in <module>
        dialects = eval(dialects.strip())
      File "<string>", line 0

when that happened I usually solved it with:

pip install sqlalchemy --upgrade 

but now it doesn't work anymore, what do I do?

pip uninstall sqlalchemy > pip install sqlalchemy

that solved the problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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