1、问题背景
使用的Python是Mac下的Python3.6.3,本来环境一切正常,安装一个工具后,出现的问题
(1)使用requests库,发送https请求时报错(发送http正常)
(2)在Python3解释器下,使用左右键跳转光标时,出现乱码
2、问题分析及解决方案
(1)针对问题1,通过搜索资料,发现是import ssl报错,然后打开Python3解释器,直接import ssl,查看报错信息,发现报错信息如下:
python 3.6 import _ssl # if we can't import it, let the error propagate ImportError:
dlopen(/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3
.6/lib-dynload/_ssl.cpython-36m-darwin.so, 2):
Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
查看重点报错信息:"Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib",发现是此路径下未找到,进入路径&#