Created
May 6, 2020 11:10
-
-
Save MerleLiuKun/bc78554c19ce1f34fa729633a62df4ce to your computer and use it in GitHub Desktop.
mysqlclient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 确认再 Python 虚拟环境下 | |
export PATH="/usr/local/Cellar/mysql@5.7/5.7.29/bin/:$PATH" # 将本机的 MySQL 路径加到 PATH | |
# 如果出现 ld: library not found for -lssl | |
# 但此问题已在 2020年2月被 mysqlclient在主分支修复,暂未发布 | |
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" | |
# 执行安装 | |
pip install mysqlclient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment