美文网首页
django项目安装mysqlclient失败

django项目安装mysqlclient失败

作者: 嗯o哼 | 来源:发表于2024-03-09 21:32 被阅读0次
pip install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      /bin/sh: pkg-config: command not found
      /bin/sh: pkg-config: command not found
      /bin/sh: pkg-config: command not found
      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
      Trying pkg-config --exists mariadb
      Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
      Trying pkg-config --exists libmariadb
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 127.
      Traceback (most recent call last):

需要安装mysql

brew install mysql
brew install mysql-client

相关文章

网友评论

      本文标题:django项目安装mysqlclient失败

      本文链接:https://www.haomeiwen.com/subject/ztluzdtx.html