problem description
bought a CVM yesterday. According to the method on the Internet, after compiling and installing Python, execute request.urlopen ("https://www.baidu.com")
will make mistakes, use requests.get (" https://www.baidu.com")
will also make mistakes. In short, you can"t access the URL at the beginning of https. The Python2.7 that comes with the system can be executed, and the Python3.6 on your computer can also be executed. It is estimated that there is a problem with the installation
the environmental background of the problems and what methods you have tried
tried the method found by Baidu, install openssl, openssl-devel and then recompile and install Python, is useless
related codes
/ / Please paste the code text below (do not replace the code with pictures)
from urllib import request
request.urlopen("https://www.baidu.com")
what result do you expect? What is the error message actually seen?
urlopen error Picture:
rqeuests: