在Visual Studio Code中尝试从终端打开jupyter笔记本时,我不断收到以下错误。我尝试过使用conda install
卸载并重新安装六个,但同样的问题仍然存在。昨天天气很好,所以我不知道从现在到那时发生了什么。我在虚拟环境中使用Python 3.8.5。有什么想法吗?
(dreams) C:UsersjacksDocumentsdreams_project>jupyter notebook
Traceback (most recent call last):
File "C:UsersjacksAnaconda3Scriptsjupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:UsersjacksAnaconda3libsite-packagesnotebooknotebookapp.py", line 83, in <module>
from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
File "C:UsersjacksAnaconda3libsite-packagesnotebookserviceskernelskernelmanager.py", line 18, in <module>
from jupyter_client.session import Session
File "C:UsersjacksAnaconda3libsite-packagesjupyter_clientsession.py", line 41, in <module>
from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
File "C:UsersjacksAnaconda3libsite-packagesjupyter_clientjsonutil.py", line 10, in <module>
from dateutil.parser import parse as _dateutil_parse
File "C:UsersjacksAnaconda3libsite-packagesdateutilparser__init__.py", line 2, in <module>
from ._parser import parse, parser, parserinfo, ParserError
File "C:UsersjacksAnaconda3libsite-packagesdateutilparser_parser.py", line 42, in <module>
import six
ModuleNotFoundError: No module named 'six'
我也遇到了同样的问题,6显示为conda安装的,在python中手动导入时加载良好。Jupyter Notebook的基本版本会加载,但Jupyter笔记本不会在我的虚拟环境中加载。
在我的环境激活的情况下从终端运行pip3 install six
似乎解决了这个问题,但我不知道为什么!
还要确保VS Python扩展设置中Conda的路径是正确的。