最近重拾编程路,决定从python入手,win10环境python、pycharm顺利安装,demo小试牛刀,IP成功被豆瓣封锁,忽然遇到了包以来的问题。
被各种包依赖折磨后百度知道有个anaconda这个宝贝,于是卸载python,下载anaconda最新版,安装后conda update --all,居然无数报错,于是换清华源,还碰上清华源停服事件,换源、降版本、加path各种招数尝试一遍即将绝望之际,发现一个极致简单方法可以解决:
错误:
执行 pip install xxxx /conda update xxxx,各种报错
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting jupyterthemes
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/jupyterthemes/
解决方案:
everything 搜索ssl.pyd文件目录,然后python官网下载对应python版本压缩包,如 我用的3.7.1 文件名 Windows x86-64 embeddable zip file ,然后解压将解压后的 _ssl.pyd替换掉系统中的相应文件。
愉快的解决了。