在cygwin下安装google-api-python-client时出错

时间:2022-08-19 15:48:46

I am trying to install google-api-python-client on cygwin on a Windows 7 system. Following their install instructions, I am trying to run

我正在尝试在Windows 7系统的cygwin上安装google-api-python-client。按照他们的安装说明,我正在尝试运行

easy_install --upgrade google-api-python-client

But I am getting this error:

但是我犯了一个错误:

/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

error: Could not find suitable distribution for Requirement.parse('google-api-python-client')

错误:无法为Requirement.parse找到合适的分布(“google-api-python-client”)

How can I fix this?

我该怎么解决这个问题呢?

1 个解决方案

#1


0  

first install curl using apt-get

首先使用apt-get安装curl

curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz

curl - o https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz

tar xvfz pip-1.2.1.tar.gz

焦油xvfz pip-1.2.1.tar.gz

cd pip-1.2.1

cd pip-1.2.1

python setup.py install

python的设置。py安装

#1


0  

first install curl using apt-get

首先使用apt-get安装curl

curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz

curl - o https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz

tar xvfz pip-1.2.1.tar.gz

焦油xvfz pip-1.2.1.tar.gz

cd pip-1.2.1

cd pip-1.2.1

python setup.py install

python的设置。py安装