我试图使用OAUTH2服务帐户访问IPython运行python3.5内核的Google应用程序电子表格,利用googleapi Python客户端,但遇到了“CryptoUnavailableError:No crypto library available”错误。在
我关注了Google的文档(https://developers.google.com/api-client-library/python/auth/service-accounts),还查阅了关于stack溢出的各种文章。在conda虚拟环境中,我成功地安装了以下库:
但是,以下代码片段仍会导致CryptoUnavailableError:
from oauth2client.client import SignedJwtAssertionCredentials
with open("mykey.p12", 'rb') as f:
private_key = f.read()
client_email = 'myaccount@myapplication.iam.gserviceaccount.com'
scope = 'https://spreadsheets.google.com/feeds'
credentials = SignedJwtAssertionCredentials(client_email, private_key, scope)
有人在OSX上的Conda中为Python3.5实现加密了吗?在
目前没有回答
相关问题 更多 >
编程相关推荐