- A+
所属分类:Django学习
上一年更新至今已经过去了10个月了,这次填补一个MacOS系统mysqlclient 的安装坑,每一次都会遇到,每一次都查找各种资料,这一次直接写到博客上面来。
报错内容
- ld: library not found for -lssl
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- error: command 'gcc' failed with exit status 1
解决方案
1.进入虚拟环境
2.执行下面的命令
- export LDFLAGS="-L/usr/local/opt/openssl/lib"
- export CPPFLAGS="-I/usr/local/opt/openssl/include"
3、在虚拟环境中安装
poetry install
为poetry的执行安装虚拟环境的命令,比pip或pipenv好用些。
2020年5月3日 下午10:10 沙发
点赞