minzoovv / tip-jar

모르는 거에 머리 싸매다 결국 해결했을때, Tip Jar에 Tip을 넣자!
0 stars 0 forks source link

Error while install mysqlclient in python module #13

Open minzoovv opened 4 years ago

minzoovv commented 4 years ago

Problem :rage:

Got this error during pip install mysqlclient

ld: library not found for -lssl
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'clang' failed with exit status 1

Solution :relieved:

This needs openssl to install mysqlclient, so it needs to be linked with the lib exporting lib dir like:

$ export LDFLAGS=-L/usr/local/opt/openssl/lib   

Additional Ref :book:

https://github.com/PyMySQL/mysqlclient-python/issues/131

Jie-Redis commented 4 years ago

windows 里面pip install mysqlclient 一直显示失败,怎么解决啊