一、AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
背景:Anaconda更新版本后,运行import oss2时报错
~/anaconda3/lib/python3.8/site-packages/OpenSSL/crypto.py in X509StoreFlags() 1535
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY 1536
CHECK_SS_SIGNATURE = _lib.X509_V_FLAG_CHECK_SS_SIGNATURE -> 1537
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK 1538 1539
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
解决方法:
pip install pyOpenSSL --upgrade
二、jutyper notebook 报错 500 : Internal Server Error
背景:昨天还能用,今天就突然报错
[E 11:52:58.483 NotebookApp] 500 GET /notebooks/Documents/%E5%B1%A0%E5%AE%B0/%E4%BC%A0%E8%BE%93%E5%8C%85/download.ipynb (::1) 87.84ms
referer=http://localhost:8888/tree/Documents/%E5%B1%A0%E5%AE%B0/%E4%BC%A0%E8%BE%93%E5%8C%85
解决方法一:
# 更新nbconvert
pip install --upgrade --user nbconvert
#或者 更新ipython的全部包
pip install --upgrade "ipython[all]"
方法二:
三、jupyterlab 左侧栏显示ipynb目录
方法一:
新建Terminal,输入以下指令,安装nbextensions 插件
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
#启用 nbextensions
jupyter nbextension enable codefolding/main
运行成功后,重启Jupyter Notebook或Jupyter Lab。
如不成功,尝试更新jupyter_contrib_nbextensions
:
pip install --upgrade jupyter_contrib_nbextensions
方法二: