问题:
root@d66efd26efba:~# pip install termcolor
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/termcolor/
...
root@d66efd26efba:~#
解决:
# ubuntu下安装openssl-devel
$ sudo apt-get install openssl
$ sudo apt-get install libssl-dev
#重新编译python3.7.10
$ cd Python-3.7.10
$ ./configure --with-ssl-default-suites=openssl
$ make
$ sudo make install
#