Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/342.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在mac上请求命令行工具时出现Mysql python安装错误 运行MySQL-python-1.2.5/setup.py-q bdist_egg--dist dir/tmp/easy_install-lkPuJx/MySQL-python-1.2.5/egg-dist-tmp-W1ZChm 在_mysql.c:44中包含的文件中: /usr/local/cillar/mysql/5.7.17/include/mysql/my_config.h:172:9:警告:“SIZEOF_LONG”宏重定义[-Wmacro重定义] #定义长8的大小 ^ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:54:17:注意:前面的定义在这里 #定义长4的大小 ^ 在_mysql.c:44中包含的文件中: /usr/local/cillar/mysql/5.7.17/include/mysql/my_config.h:177:9:警告:“SIZEOF_TIME_T”宏已重新定义[-Wmacro已重新定义] #定义时间大小\u T 8 ^ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:57:17:注意:前面的定义在这里 #定义时间大小4 ^ 生成2个警告。 _警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] cmd_argc=PySequence_Size(cmd_args); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换会丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] groupc=PySequence\u Size(组); ~ ^~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] int j,n2=PySequence_大小(fun); ~~ ^~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u real\u escape\u字符串(&(self->connection),out,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u escape\u字符串(out、in、size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“Py_ssize_t”(又称“long”)到“int”[-Wshorten-64-to-32] 大小=PyString\u GET\u大小; ~ ^~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/stringobject.h:92:32:注意:从宏“PyString\u GET\u SIZE”展开 #定义PyString_GET_SIZE(op)Py_SIZE(op) ^~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/object.h:116:56:注意:从宏“Py_SIZE”展开 #定义Py_大小(ob)(((PyVarObject*)(ob))->ob_大小) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u real\u escape\u字符串(&(self->connection),out+1,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u escape\u字符串(out+1,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _c:1274:11:警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] 如果((n=PyObject_Length(o))==-1)转到错误; ~ ^~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/abstract.h:434:25:注意:从宏“PyObject\u Length”展开 #定义PyObject_长度PyObject_大小 ^ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ 生成13条警告。 ld:找不到-lssl的库 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用) 错误:安装程序脚本退出,错误为:命令“cc”失败,退出状态为1_Python_Mysql Python - Fatal编程技术网

在mac上请求命令行工具时出现Mysql python安装错误 运行MySQL-python-1.2.5/setup.py-q bdist_egg--dist dir/tmp/easy_install-lkPuJx/MySQL-python-1.2.5/egg-dist-tmp-W1ZChm 在_mysql.c:44中包含的文件中: /usr/local/cillar/mysql/5.7.17/include/mysql/my_config.h:172:9:警告:“SIZEOF_LONG”宏重定义[-Wmacro重定义] #定义长8的大小 ^ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:54:17:注意:前面的定义在这里 #定义长4的大小 ^ 在_mysql.c:44中包含的文件中: /usr/local/cillar/mysql/5.7.17/include/mysql/my_config.h:177:9:警告:“SIZEOF_TIME_T”宏已重新定义[-Wmacro已重新定义] #定义时间大小\u T 8 ^ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:57:17:注意:前面的定义在这里 #定义时间大小4 ^ 生成2个警告。 _警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] cmd_argc=PySequence_Size(cmd_args); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换会丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] groupc=PySequence\u Size(组); ~ ^~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] int j,n2=PySequence_大小(fun); ~~ ^~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u real\u escape\u字符串(&(self->connection),out,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u escape\u字符串(out、in、size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“Py_ssize_t”(又称“long”)到“int”[-Wshorten-64-to-32] 大小=PyString\u GET\u大小; ~ ^~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/stringobject.h:92:32:注意:从宏“PyString\u GET\u SIZE”展开 #定义PyString_GET_SIZE(op)Py_SIZE(op) ^~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/object.h:116:56:注意:从宏“Py_SIZE”展开 #定义Py_大小(ob)(((PyVarObject*)(ob))->ob_大小) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u real\u escape\u字符串(&(self->connection),out+1,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u escape\u字符串(out+1,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _c:1274:11:警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] 如果((n=PyObject_Length(o))==-1)转到错误; ~ ^~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/abstract.h:434:25:注意:从宏“PyObject\u Length”展开 #定义PyObject_长度PyObject_大小 ^ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ 生成13条警告。 ld:找不到-lssl的库 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用) 错误:安装程序脚本退出,错误为:命令“cc”失败,退出状态为1

在mac上请求命令行工具时出现Mysql python安装错误 运行MySQL-python-1.2.5/setup.py-q bdist_egg--dist dir/tmp/easy_install-lkPuJx/MySQL-python-1.2.5/egg-dist-tmp-W1ZChm 在_mysql.c:44中包含的文件中: /usr/local/cillar/mysql/5.7.17/include/mysql/my_config.h:172:9:警告:“SIZEOF_LONG”宏重定义[-Wmacro重定义] #定义长8的大小 ^ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:54:17:注意:前面的定义在这里 #定义长4的大小 ^ 在_mysql.c:44中包含的文件中: /usr/local/cillar/mysql/5.7.17/include/mysql/my_config.h:177:9:警告:“SIZEOF_TIME_T”宏已重新定义[-Wmacro已重新定义] #定义时间大小\u T 8 ^ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:57:17:注意:前面的定义在这里 #定义时间大小4 ^ 生成2个警告。 _警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] cmd_argc=PySequence_Size(cmd_args); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换会丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] groupc=PySequence\u Size(组); ~ ^~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] int j,n2=PySequence_大小(fun); ~~ ^~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u real\u escape\u字符串(&(self->connection),out,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u escape\u字符串(out、in、size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“Py_ssize_t”(又称“long”)到“int”[-Wshorten-64-to-32] 大小=PyString\u GET\u大小; ~ ^~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/stringobject.h:92:32:注意:从宏“PyString\u GET\u SIZE”展开 #定义PyString_GET_SIZE(op)Py_SIZE(op) ^~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/object.h:116:56:注意:从宏“Py_SIZE”展开 #定义Py_大小(ob)(((PyVarObject*)(ob))->ob_大小) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u real\u escape\u字符串(&(self->connection),out+1,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=mysql\u escape\u字符串(out+1,in,size); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _c:1274:11:警告:隐式转换丢失整数精度:“Py_ssize_t”(也称为“long”)到“int”[-Wshorten-64-to-32] 如果((n=PyObject_Length(o))==-1)转到错误; ~ ^~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/abstract.h:434:25:注意:从宏“PyObject\u Length”展开 #定义PyObject_长度PyObject_大小 ^ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ _警告:隐式转换丢失整数精度:“unsigned long”到“int”[-Wshorten-64-to-32] len=strlen(buf); ~ ^~~~~~~~~~~ 生成13条警告。 ld:找不到-lssl的库 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用) 错误:安装程序脚本退出,错误为:命令“cc”失败,退出状态为1,python,mysql-python,Python,Mysql Python,这是我尝试下载MySQL python时的错误 我尝试卸载命令行工具并下载,我看到请求来请求命令行工具 这就是错误: xcode选择:注意:在“/Applications/xcode.app”中找不到开发人员工具,请求安装。在对话框中选择一个选项以下载命令行开发人员工具。 错误:安装程序脚本退出,错误为:命令“cc”失败,退出状态为1 请帮我解决这个问题。我使用以下方法修复了此问题: env LDFLAGS="-I/usr/local/opt/openssl/include -L/

这是我尝试下载MySQL python时的错误

我尝试卸载命令行工具并下载,我看到请求来请求命令行工具

这就是错误:

xcode选择:注意:在“/Applications/xcode.app”中找不到开发人员工具,请求安装。在对话框中选择一个选项以下载命令行开发人员工具。
错误:安装程序脚本退出,错误为:命令“cc”失败,退出状态为1
请帮我解决这个问题。

我使用以下方法修复了此问题:

env LDFLAGS="-I/usr/local/opt/openssl/include 
-L/usr/local/opt/openssl/lib" pip2.7 install mysql-python
我通过使用以下方法进行修复:

env LDFLAGS="-I/usr/local/opt/openssl/include 
-L/usr/local/opt/openssl/lib" pip2.7 install mysql-python

谢谢@Luke woodward谢谢@Luke woodward