mysql - 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
解决方案
您可能需要安装命令行工具
xcode-select --install
推荐阅读
- android - 如何确保我的布局的所有部分都保持可见?
- windows - Bash 对 windows 的“for”
- google-app-engine - google-app-engine 脚本中的返回值始终为 None
- php - 如何将响应转换为适当的形式?
- security - 外部可访问的 Tomcat Manager 中的安全风险
- .net-core - 无法检测执行路径 Rider Dotnet 核心的 dbgshim 路径
- sql - 在表中查找一对多的查询/算法
- search - Blogger 搜索仅显示 7 个结果
- python - 模拟 subprocess.Popen
- javascript - 如何添加 rangeslider.js 以控制 Slick Slider 的拖动