1. 程式人生 > 其它 >linux 安裝 jupyter報錯解決

linux 安裝 jupyter報錯解決

技術標籤:python

直接 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