博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mac 安装mysql 5.1_mac安装mysql-python==1.2.5的问题
阅读量:4954 次
发布时间:2019-06-12

本文共 3327 字,大约阅读时间需要 11 分钟。

在使用pip install mysql-python==1.2.5时出现以下问题

尝试brew install msql-connector-c依然无法解决问题,希望有大佬帮忙解决一下

Running setup.py install for MySQL-python ... error

Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-IjXQKw/MySQL-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-KUcWB8/install-record.txt --single-version-externally-managed --compile:

running install

running build

running build_py

creating build

creating build/lib.macosx-10.15-x86_64-2.7

copying _mysql_exceptions.py -> build/lib.macosx-10.15-x86_64-2.7

creating build/lib.macosx-10.15-x86_64-2.7/MySQLdb

copying MySQLdb/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb

copying MySQLdb/converters.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb

copying MySQLdb/connections.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb

copying MySQLdb/cursors.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb

copying MySQLdb/release.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb

copying MySQLdb/times.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb

creating build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/CR.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/ER.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.15-x86_64-2.7/MySQLdb/constants

running build_ext

building '_mysql' extension

creating build/temp.macosx-10.15-x86_64-2.7

cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/opt/mysql-client/include/mysql -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.15-x86_64-2.7/_mysql.o

_mysql.c:44:10: fatal error: 'my_config.h' file not found

#include "my_config.h"

^~~~~~~~~~~~~

1 error generated.

error: command 'cc' failed with exit status 1

----------------------------------------

Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-IjXQKw/MySQL-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-KUcWB8/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-IjXQKw/MySQL-python/

转载地址:http://cwyhp.baihongyu.com/

你可能感兴趣的文章
Ajax上传文件到C#Action中
查看>>
Linux使用mount挂载Windows共享文件夹
查看>>
111. Minimum Depth of Binary Tree
查看>>
SSM框架—详细整合教程(Spring+SpringMVC+MyBatis)(转)
查看>>
动态规划问题
查看>>
66 Plus One(大数+1Easy)
查看>>
Mako模板引擎安装及在Django中的集成
查看>>
JVM(HotSpot) 7种垃圾收集器的特点及使用场景
查看>>
SQLite快速入门教程(第一集)总共五集_小布老师
查看>>
【7-10 PAT】树的遍历
查看>>
MySQL 数据类型说明解释
查看>>
Redis各个数据类型的使用场景
查看>>
C++拷贝构造函数详解
查看>>
SpringIOC 学习分享
查看>>
zabbix系列之十——添加短信告警
查看>>
port 跟网络服务的关系列表
查看>>
二维数组展示到DataGridView(c#)
查看>>
HDU 2102 A计划 DFS与BFS两种写法 [搜索]
查看>>
[bzoj1055][HAOI2008]玩具取名_区间dp
查看>>
Adhesive框架系列文章--分布式组件客户端模块使用
查看>>