汇总记录遇到的各类Python代码执行的问题,方便查询
错误一:ssl.SSLEOFError: EOF occurred in violation of protocol
该问题一般是使用网络库请求接口出现错误,把https或wss改成:http或ws就可以了
错误二:pip could not find a version that satisfies the requirement (from versions none) No matching distribution found
该问题一般是需要安装的库要求的python版本高于当前你环境的python版本。
举个例子:假如安装requests 最低python版本要求是python3.6,但你当前python是3.5版本,那么在使用pip install requests 时就会提示该错误。