File “/usr/local/python3/lib/python3.7/site-packages/flask/init.py”, line 21, in
from .app import Flask, Request, Response
File “/usr/local/python3/lib/python3.7/site-packages/flask/app.py”, line 25, in
from . import cli, json
File “/usr/local/python3/lib/python3.7/site-packages/flask/cli.py”, line 18, in
import ssl
File “/usr/local/python3/lib/python3.7/ssl.py”, line 98, in
import _ssl # if we can’t import it, let the error propagate
ModuleNotFoundError: No module named ‘_ssl’
解决办法
1.
yum install - openssl openssl-devel
2.
./configure --prefix=/usr/local/python3 --with-ssl
3.
make && make install