pip error:找不到google-api-python-client的匹配分布

时间:2018-04-10 21:53:32

标签: pip google-api-python-client

我按照此博客文章中介绍的有关Firebase和Google App Engine

的步骤进行操作

https://firebase.googleblog.com/2017/03/how-to-schedule-cron-jobs-with-cloud.html

当我尝试跑步时:

pip install -t lib -r requirements.txt

我收到以下错误:

Could not fetch URL https://pypi.python.org/simple/google-api-python-client/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
  Could not find a version that satisfies the requirement google-api-python-client (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for google-api-python-client (from -r requirements.txt (line 1))
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

我在Mac上。

有关如何纠正此问题的任何想法?

谢谢!

编辑: 仅供参考:requirements.txt的全部内容仅为:

google-api-python-client

从这里开始:https://github.com/firebase/functions-cron/tree/master/appengine

1 个答案:

答案 0 :(得分:-1)

尝试使用pip直接安装:

pip install google-api-python-client

这适合我。