HTTPSConnection from http.client?
Peter Otten
__peter__ at web.de
Tue Nov 17 06:22:50 EST 2015
Alex Naumov wrote:
> Hello,
>
> does anybody know how to create a HTTPS connections in python2 or python3?
> I tried second day to do that with http.client[1], but every time get
> error:
>
> from http.client import HTTPSConnection
> ImportError: cannot import name HTTPSConnection
>
>
> Where is HTTPSConnection located? Which module?
>
> I use openSUSE 13.1 x86_64.
>
> Thank you,
> Alex
>
>
> [1] https://docs.python.org/3/library/http.client.html
Did you compile Python from source? You may be missing the development
packages.
If you are using the Python provided by the distribution, perhaps support
for SSL is in a separate package?
Note that I'm guessing, I don't have openSUSE.
More information about the Python-list
mailing list