我正在尝试python-upwork 库并按照设置进行操作。pip freeze
显示所需的库:
httplib2==0.10.3
httplib2.system-ca-certs-locater==0.1.2
macholib==1.5.1
matplotlib==1.3.1
modulegraph==0.10.4
numpy==1.8.0rc1
oauth2==1.5.211
urllib3==1.10
但是尝试创建客户端会给出
client = upwork.Client(public_key, secret_key)
File "/Library/Python/2.7/site-packages/upwork/client.py", line 119, in __init__
ca_certs=ca_certs_locater.get(),
File "/Library/Python/2.7/site-packages/ca_certs_locater/__init__.py", line 36, in get
raise ImportError()
我找到了这个链接,听起来 python 找不到验证 upwork.com 的证书。我尝试了以下建议,但仍然是同样的问题。我不确定将 cacerts.pem 文件放在哪里。