首页 > 解决方案 > python3 virtualenv(Mac OS)中的mysqlclient安装失败

问题描述

我尝试使用以下命令在 python3 virtualenv 中安装 mysqlclient:

pip3 install mysqlclient

这是我得到的错误:

  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for mysqlclient

lssl 究竟是什么?我试过brew install lssl了,但没有这样的东西存在。很想在这方面得到一些帮助:(

注意:我使用 python3.6.5

标签: mysqlpython-3.x

解决方案


您可能需要安装命令行工具

xcode-select --install

推荐阅读