解决Python找不到ssl模块问题 No module named _ssl

python安装完毕后,提示找不到ssl模块:

1

2

3

4

5

6

7

8

9

10

11

[[email protected] ~]$ python

Python 2.7.15 (default, Oct 23 2018, 18:08:43) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2

Type "help""copyright""credits" or "license" for more information.

>>> import ssl

Traceback (most recent call last):

File "", line 1, in 

File "/usr/local/python27/lib/python2.7/ssl.py"

你可能感兴趣的:(Python入门,ssl,python,网络协议)