使用 pip 安装 JupyterLab

时间:2020-12-24 02:09:04

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

我正在尝试使用 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'

可能是什么原因?

2 个答案:

答案 0 :(得分:0)

latest Python release at the time of writing is 3.9.1,但您似乎正在尝试使用 Python 3.10:

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

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

答案 1 :(得分:0)

要下载打开的终端并输入:

<块引用> <块引用> <块引用>

pip 安装 jupyterlab

打开类型:

<块引用> <块引用> <块引用>

jupyter 实验室