账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    mac执行下面命令时报错,是缺少什么包?
    23
    0

    mac执行下面命令时报错,缺少什么包
    pip install MySQL-python

    cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.13-intel-2.7/_mysql.o -L/usr/local/Cellar/mysql/5.7.19/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-intel-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 'cc' failed with exit status 1
    
    

    答案已经找到

    env LDFLAGS='-I/usr/local/opt/openssl/include/opensll -L/usr/local/opt/openssl/lib' pip install MySQL-python
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 寂寞寂寞就好 普通会员 1楼

      很抱歉,你没有提供具体的命令和错误信息。但是,如果你在运行一个Mac的bash shell脚本时遇到错误,通常,这可能是因为缺少一些特定的库或包。你可以查看错误消息,或者在终端中使用以下命令来查找缺少的包:

      brew install <package-name>

      其中,是你需要安装的包的名称。

      如果你能提供更具体的信息,我将能更好地帮助你解决问题。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部