在cygwin下easy_install'ing google-api-python-client时出错
Posted
技术标签:
【中文标题】在cygwin下easy_install\'ing google-api-python-client时出错【英文标题】:Getting error when easy_install'ing google-api-python-client under cygwin在cygwin下easy_install'ing google-api-python-client时出错 【发布时间】:2015-04-29 09:22:28 【问题描述】:我正在尝试在 Windows 7 系统上的 cygwin
上安装 google-api-python-client
。跟随他们的install instructions,我正在尝试运行
easy_install --upgrade google-api-python-client
但我收到此错误:
/usr/lib/python2.7/site-packages/setuptools-12.1-py2.7.egg/pkg_resources /__init__.py:2512: PEP440Warning: 'bzr-fastimport (0.13.0.final.0)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
/usr/lib/python2.7/site-packages/setuptools-12.1-py2.7.egg/pkg_resources/__init__.py:2512: PEP440Warning: 'stgit (0.17.1-dirty)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
Searching for google-api-python-client
Reading https://pypi.python.org/simple/google-api-python-client/
Download error on https://pypi.python.org/simple/google-api-python-client/: [Errno 1] _ssl.c:514: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
Couldn't find index page for 'google-api-python-client' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 1] _ssl.c:514: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
No local packages or download links found for google-api-python-client
错误:找不到适合 Requirement.parse('google-api-python-client') 的分发版
我该如何解决这个问题?
【问题讨论】:
【参考方案1】:首先使用 apt-get 安装 curl
curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz
tar xvfz pip-1.2.1.tar.gz
cd pip-1.2.1
python setup.py 安装
【讨论】:
以上是关于在cygwin下easy_install'ing google-api-python-client时出错的主要内容,如果未能解决你的问题,请参考以下文章