jupyter notebook
windows11启动报错======
Traceback (most recent call last):
File "D:\Anaconda3-5.3.1-Windows-x86_64\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\notebook\notebookapp.py", line 82, in <module>
from .services.contents.manager import ContentsManager
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\notebook\services\contents\manager.py", line 17, in <module>
from nbformat import sign, validate as validate_nb, ValidationError
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\nbformat\__init__.py", line 33, in <module>
from .validator import validate, ValidationError
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\nbformat\validator.py", line 12, in <module>
from jsonschema import ValidationError
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\jsonschema\__init__.py", line 18, in <module>
from jsonschema.validators import (
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\jsonschema\validators.py", line 8, in <module>
import requests
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\requests\__init__.py", line 95, in <module>
from urllib3.contrib import pyopenssl
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\urllib3\contrib\pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\OpenSSL\crypto.py", line 1550, in <module>
class X509StoreFlags(object):
File "D:\Anaconda3-5.3.1-Windows-x86_64\lib\site-packages\OpenSSL\crypto.py", line 1570, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_-_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
解决办法:======
pip uninstall pyOpenSSL
pip install pyOpenSSL
问题解决。