【发布时间】:2021-03-29 09:46:14
【问题描述】:
由于以下错误,我无法通过 pip3 安装 Python mysqlclient 库
$ pip3.6 install mysqlclient
...
MySQLdb/_mysql.c: In function ‘_mysql_row_to_dict_cached’:
MySQLdb/_mysql.c:1340:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (unsigned int i=0; i
操作系统为CentOS Linux release 7.7.1908 (Core),gcc版本如下图
$ gcc --version gcc (GCC) 4.8.5 20150623 (红帽 4.8.5-39) 版权所有 (C) 2015 Free Software Foundation, Inc. 这是免费软件;请参阅复制条件的来源。没有 保修单;甚至不是为了适销性或特定用途的适用性。
【问题讨论】:
标签: python