我正在学习一个新的python库mysql。mysql.connector.connect(
AttributeError: module 'mysql.connector' has no attribute 'connect' 我调查了其他类似的堆栈溢出问题我也试着重命名我的文件,但没有帮助。请帮助我!
但今天,我再次运行相同的笔记本import mysql.connector,错误再次弹出。ModuleNotFoundError: No module named 'mysql' 我已经安装了: brew install mysql
pip install mysql-connector-python但是仍然不能解决这个问题。我怀疑可能有什么与我的zshrc有关。我的zshrc是here。 我的mysql路径是usr