我已经在mac osx上安装了xampp,运行的是mysql mariadb,现在我可以从终端上运行mysql,但是如果我尝试安装mysqlclient,我会得到错误消息:
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-install-7vpJZR/mysqlclient/setup.py", line 16, in <module>
metadata, options = get_config()
File "setup_posix.py", line 53, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 28, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
我试着遵循这个线程mac os x-environmenterror:mysql\u config not found before post it here,但我认为由于我的mysql是由xampp安装的,所以他们在该线程中讨论的配置不适用于我的问题。
暂无答案!
目前还没有任何答案,快来回答吧!