我在安裝mysql-python時遇到了問題。創建一個新的virtualenv和安裝MySQL-python的時候......這裏的錯誤消息:安裝mysql-python時出錯:找不到-lssl的庫
(env)$ pip install mysql-python
Collecting mysql-python
...
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk build/temp.macosx-10.12-x86_64-2.7/_mysql.o -L/usr /local/Cellar/mysql/5.7.16/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.12-x86_64-2.7/_mysql.so
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
使用自制軟件,我已經安裝:
- libressl
- OpenSSL的
- [email protected]
- mysql
已經嘗試t brew link
但釀造拒絕這樣做。
操作系統是MacOS Sierra。
任何人都可以幫忙嗎?謝謝!
在'pip install mysql-python'中沒有爲我工作 – Jonny