linux 安装 jupyter报错解决

直接 pip install jupyter 安装报以下错误

ERROR: Could not find a version that satisfies the requirement jupyterlab-widgets>=1.0.0; python_version >= "3.5" (from ipywidgets->jupyter) (from versions: 0.3.2, 0.3.3, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.6.10, 0.6.11, 0.6.12, 0.6.13, 0.6.14, 0.6.15)
ERROR: No matching distribution found for jupyterlab-widgets>=1.0.0; python_version >= "3.5" (from ipywidgets->jupyter)
WARNING: You are using pip version 20.2.1; however, version 20.3.3 is available.
You should consider upgrading via the '/usr/local/python3/bin/python3.5 -m pip install --upgrade pip' command.

原因: pip 不是最新版本

正确方式:

第一步:更新pip版本
pip install --upgrade pip
第二部:进行安装操作
pip  install jupyter 

其他人的解决办法:(无法解决我的问题)

是因为网络的问题,要使用国内的镜像源来加速:

pip3 install --user  jupyter -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

你可能感兴趣的:(python)