由于以下错误,我无法通过 pip3 安装 Python mysqlclient 库
\n$ pip3.6 install mysqlclient\n...\nMySQLdb/_mysql.c: In function \xe2\x80\x98_mysql_row_to_dict_cached\xe2\x80\x99:\nMySQLdb/_mysql.c:1340:5: error: \xe2\x80\x98for\xe2\x80\x99 loop initial declarations are only allowed in C99 mode\n for (unsigned int i=0; iRun Code Online (Sandbox Code Playgroud)\nThe OS is CentOS Linux release 7.7.1908 (Core), the gcc version is shown below
\n$ gcc --version\ngcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)\nCopyright (C) 2015 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR …Run Code Online (Sandbox Code Playgroud) python ×1