OpenSSL.SSL.Error: [('SSL routines', 'ssl3_read_n', 'unexpected eof while reading')] when updating / searching / installing conda packages

浪尽此生 提交于 2020-06-29 05:26:56

问题


Whenever I try to perform any operation that requires connecting to any conda channels, e.g. update --all, I get the following error, always in the first step:

OpenSSL.SSL.Error: [('SSL routines', 'ssl3_read_n', 'unexpected eof while reading')]

The workaround is uninstalling and then installing the entire Anaconda distribution.
After that any conda command works as expected for the rest of the day.
BUT the next day I start getting the above error again.
I know it's not due to any networking restriction because I can load all the channel URLs in the browser (and because re-installation fixes the problem temporarily).

Right now the software versions are:

  • conda version : 4.8.3
  • conda-build version : 3.18.11
  • python version : 3.7.7.final.0

Does anyone else have the same issue?
Thank you.


回答1:


This can be related to openssl 1.1.1e bug Check version that you have

yum info ea-openssl11

If you have 1.1.1e, then you can downgrade to 1.1.1d

yum downgrade ea-openssl11


来源:https://stackoverflow.com/questions/60888230/openssl-ssl-error-ssl-routines-ssl3-read-n-unexpected-eof-while-readin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!