【问题标题】:Installing JupyterLab using pip使用 pip 安装 JupyterLab
【发布时间】:2020-12-24 02:09:04
【问题描述】:

我正在尝试使用 pip install jupyterlab 在我的 Windows 系统上安装 JupyterLab,但我收到如下所示的错误:

ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
    status = self.run(options, args)
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\commands\install.py", line 320, in run
    requirement_set = resolver.resolve(
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 121, in resolve
    self._result = resolver.resolve(
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 344, in resolve
    success = self._backtrack()
  File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 287, in _backtrack
    criterion = self.state.criteria[name].excluded_of([candidate])
AttributeError: 'NoneType' object has no attribute 'excluded_of'

可能是什么原因?

【问题讨论】:

标签: python python-3.x pip jupyter-notebook jupyter-lab


【解决方案1】:

latest Python release at the time of writing is 3.9.1,但看起来你正在尝试使用 Python 3.10:

C:\Users\asus\AppData\Local\Programs\Python\Python310\

这一定是某种预发布。我建议您尝试使用稳定版本。

【讨论】:

    【解决方案2】:

    下载打开终端并输入:

    pip 安装 jupyterlab

    打开类型:

    jupyter 实验室

    【讨论】:

    • OP 已经尝试pip install jupyterlab 并收到错误,如问题所示。
    • 我一直在尝试jupyterlab 启动它,但它应该是jupyter-lab,所以感谢您的启发!!
    猜你喜欢
    • 2023-03-20
    • 2020-07-19
    • 2020-08-27
    • 1970-01-01
    • 2021-05-09
    • 2019-08-22
    • 2020-10-23
    • 2011-01-13
    • 2021-04-14
    相关资源
    最近更新 更多