[Distutils] Can't install google-api-python-client using pip
Donald Stufft
donald at stufft.io
Sun May 3 23:55:45 CEST 2015
> On May 3, 2015, at 5:21 PM, Skip Montanaro <skip.montanaro at gmail.com> wrote:
>
> I want to install google-api-python-client using pip. I can see it when I search from the command line:
>
> % pip-2.7 search google | egrep google-api
> google-api-python-client - Google API Client Library for Python
> google-apitools - client libraries for humans
> google-api-python-client-py3 - Google API Client Library for Python (python 3x port)
> google-apis-client-generator - Google Apis Client Generator
>
> I can see it in PyPI:
>
> <Screen Shot 2015-05-03 at 4.16.16 PM.png>
>
> When I try to install it, pip denies any knowledge of the package:
>
> % pip-2.7 install --user google-api-python-client
> Downloading/unpacking google-api-python-client
> Cannot fetch index base URL http://pypi.python.org/simple/ <http://pypi.python.org/simple/>
> Could not find any downloads that satisfy the requirement google-api-python-client
> No distributions at all found for google-api-python-client
> Storing complete log in /Users/skip/.pip/pip.log
>
> I can visit http://pypi.python.org/simple/ <http://pypi.python.org/simple/> and see that google-api-python-client is one of the links. Looking at pip.log I see that it's somehow translating "http" into "https":
>
> Could not fetch URL http://pypi.python.org/simple/google-api-python-client/ <http://pypi.python.org/simple/google-api-python-client/>: <urlopen error unknown url type: https>
>
> Am I missing something?
>
>
Well, PyPI redirects HTTP to HTTPS, so it’s going to be just following that redirect.
---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150503/b599da34/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150503/b599da34/attachment.sig>
More information about the Distutils-SIG
mailing list