【问题标题】:How to fix jupyter lab installation error如何修复 jupyter lab 安装错误
【发布时间】:2022-10-24 15:11:50
【问题描述】:

我正在使用 gcp ubu

ntu 18.04服务器,我想安装jupyterlab,但它不起作用

【问题讨论】:

  • 将 Python 的版本更新到 3.7 或更高版本。

标签: python google-cloud-platform jupyter-lab


【解决方案1】:

根据您提供的屏幕截图,您似乎使用的是Python 3.6 版本。根据@JohnHanely,我同意您需要将 Python 版本升级到3.7。根据此PEP 563,此功能from __future__ import annotations 可从Python3.7 开始使用

要安装,请使用以下命令:

sudo apt install python3.7

要验证安装:

python3 --version

您还可以使用virtual env 使用您需要的python 版本并运行您的代码。这将帮助您创建独立的 Python 环境。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-24
    • 2021-09-06
    • 1970-01-01
    • 1970-01-01
    • 2019-04-27
    • 2021-01-10
    • 2021-02-14
    • 1970-01-01
    相关资源
    最近更新 更多