Google API access using Service Account oauth2client.client.CryptoUnavailableError: No crypto library available

后端 未结 5 1615
夕颜
夕颜 2020-12-10 02:55

I am trying to create a service account app so that I can access Google Analytics api using Python. Two things are confusing me. First, when I use the following code:

5条回答
  •  忘掉有多难
    2020-12-10 03:34

    OSX 10.11 El Capitan does not distribute OpenSSL anymore. I was able to install cryptography using Homebrew and static build:

    env CRYPTOGRAPHY_OSX_NO_LINK_FLAGS=1 LDFLAGS="$(brew --prefix openssl)/lib/libssl.a $(brew --prefix openssl)/lib/libcrypto.a" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography
    

    More info

    • http://cryptography.readthedocs.org/en/latest/installation/

提交回复
热议问题