There is a problem with CentOS7.2 installation of Python3.7

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:
urlopen

rqeuests:
rqeuests

Jul.25,2021

https requires a certificate to access.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34b3f-2bf50.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34b3f-2bf50.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?