Traceback most recent call last File visual_inventorypy line 12 in module import mysqlconnector File CUsersThinkAppDataLocalProgramsPythonPython36libsite-packagesmysqlconnector__init__py line 32
This error occurs because the code is using the future feature annotations, which is not defined in the current version of Python being used.
The from __future__ import annotations statement is used to enable the use of variable annotations as type hints in Python versions prior to Python 3.10. However, if you are using Python 3.10 or later, this import statement is not needed.
To fix this error, you can either remove the from __future__ import annotations statement if you are using Python 3.10 or later, or you can downgrade your Python version to a version that supports this feature
原文地址: https://www.cveoy.top/t/topic/iMgS 著作权归作者所有。请勿转载和采集!