Trying to install pycrypto on Mac OSX mavericks

前端 未结 14 2105
逝去的感伤
逝去的感伤 2020-12-28 17:25

I am currently trying to install pycrypto and when I execute python setup.py build I receive this following error:

cc -bundle -undefined dynamic_lookup -arch         


        
相关标签:
14条回答
  • 2020-12-28 17:38

    On Yosemite:

    CC=clang sudo -E pip install pycrypto
    
    0 讨论(0)
  • 2020-12-28 17:38

    This works on Mojave and is better IMO than the other presented options: brew install gmp CFLAGS=-I/usr/local/include \ LDFLAGS=-L/usr/local/Cellar/gmp/6.1.2_2/lib \ pip install pycrypto

    0 讨论(0)
  • 2020-12-28 17:40

    This worked for me. (Should work if you are on Xcode 5.1)

    ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto
    
    0 讨论(0)
  • 2020-12-28 17:40

    For those of you also looking to install pycrypto as well as the cryptography package, this is the command that ended up working for me:

    env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography

    0 讨论(0)
  • 2020-12-28 17:41

    on El Capitan I just did this ...

    sudo easy_install livestreamer
    sudo easy_install PyCrypto
    

    et voila... I can now save streams to my HDD.

    0 讨论(0)
  • 2020-12-28 17:43

    This is the only thing that worked for me on Mac/El Capitan:

    sudo easy_install -U livestreamer

    0 讨论(0)
提交回复
热议问题