一、报错
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
二、故障排查
1、检查Python3环境中的SSL支持:
打开终端或命令提示符,进入你的Python环境目录。
运行以下命令来查看可用的SSL版本:
-
[root@hcss-ecs-1e19 home]# python3 Python 3.12.0 (main, Feb 21 2025, 10:47:02) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl Traceback (most recent call last): File "<stdin>", line 1, in <module> F