第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

無法在 mac os x mojave 上安裝 mysqlclient

無法在 mac os x mojave 上安裝 mysqlclient

藍(lán)山帝景 2021-08-05 15:46:58
我正在嘗試在 mac os x mojave 上安裝 mysqlclient:sudo pip3 install mysqlclient我收到以下錯(cuò)誤:clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Dversion_info=(1,3,13,'final',0) -D__version__=1.3.13 -I/usr/local/Cellar/mysql/8.0.12/include/mysql -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c _mysql.c -o build/temp.macosx-10.13-x86_64-3.6/_mysql.o    clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.6/_mysql.o -L/usr/local/Cellar/mysql/8.0.12/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-x86_64-3.6/_mysql.cpython-36m-darwin.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    ----------------------------------------Command "/Users//Development/apps/hid_ve/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-1mo7e_ok/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-9bwluwz6/install-record.txt --single-version-externally-managed --compile --install-headers /Users//Development/apps/hid_ve/bin/../include/site/python3.6/mysqlclient" failed with error code 1 in /private/tmp/pip-install-1mo7e_ok/mysqlclient/
查看完整描述

3 回答

?
慕尼黑5688855

TA貢獻(xiàn)1848條經(jīng)驗(yàn) 獲得超2個(gè)贊

升級(jí)到 mojave 后,我遇到了和你一樣的錯(cuò)誤。經(jīng)過一番挖掘,以下步驟有所幫助:


brew info openssl

輸出很有用。如果您使用的是bash或zsh,則消息為:


要讓編譯器找到 openssl,您可能需要設(shè)置:


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

export CPPFLAGS="-I/usr/local/opt/openssl/include"

執(zhí)行上述命令后,一切恢復(fù)正常。??


此外,如果您使用的是fish。消息是:


要讓編譯器找到 openssl,您可能需要設(shè)置:


set -gx LDFLAGS "-L/usr/local/opt/openssl/lib"

set -gx CPPFLAGS "-I/usr/local/opt/openssl/include"


查看完整回答
反對(duì) 回復(fù) 2021-08-05
?
ITMISS

TA貢獻(xiàn)1871條經(jīng)驗(yàn) 獲得超8個(gè)贊

export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/


查看完整回答
反對(duì) 回復(fù) 2021-08-05
  • 3 回答
  • 0 關(guān)注
  • 207 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)