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. -- https://mail.python.org/mailman/listinfo/python-list