尝试时出现以下错误pip install mysql
:
构建“_mysql”扩展创建 build/temp.macosx-10.6-intel-2.7 /usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -Dversion_info=(1 ,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/Cellar/mysql/8.0.12/include/mysql -I/Library/Frameworks/Python.framework/Versions/2.7/包含/python2.7 -c _mysql.c -o build/temp.macosx-10.6-intel-2.7/_mysql.o _mysql.c:44:10: 致命错误: 'my_config.h' 文件未找到#include "my_config .h" ^~~~~~~~~~~~~ 产生了 1 个错误。错误:命令“/usr/bin/clang”失败,退出状态为 1
有任何想法吗?
你没有 my_config 文件。那是因为你的电脑没有安装mysql。设置mysql后尝试安装
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句