3

安装 jupyter lab 时遇到问题 - 找不到满足 ipykernel 要求的版本

pip install jupyterlab
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000277F1AB8C18>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/ipykernel/
Could not find a version that satisfies the requirement ipykernel (from notebook>=4.3.1->jupyterlab) (from versions: )
No matching distribution found for ipykernel (from notebook>=4.3.1->jupyterlab)

访问此 Github 页面后

我检查了点子版本:

C:\Users\xxxx\AppData\Local\Continuum\anaconda3\Scripts>pip --version
pip 9.0.1 from C:\Users\xxxx\AppData\Local\Continuum\anaconda3\lib\site-packages (python 3.6)

和 ipykernel 版本:

C:\Users\xxxx\AppData\Local\Continuum\anaconda3\Scripts>conda list ipykernel

我尝试了 conda forge 但仍然没有工作

conda install -c conda-forge jupyterlab
Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/pro/noarch/repodata.json.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001F03B89DE10>, 'Connection to repo.continuum.io timed out. (connect timeout=9.15)'))",),)
4

4 回答 4

10

我有一个类似的问题。在我的情况下(Ubuntu 16.04,python 3.5.2)命令

pip install jupyterlab

导致了类似的错误。阅读此页面后

https://github.com/jupyterlab/jupyterlab

我尝试了这个命令并且它有效

python3 -m pip install jupyterlab

我希望它可以帮助!

于 2019-03-13T11:14:38.293 回答
2

也许你有很多 python 环境,所以,你可能需要为 python 指定一个显式版本并重新尝试安装它,如下所示:

python3 -m pip install jupyterlab

它也对我有用。我希望它可以帮助你。

于 2019-11-18T06:55:38.053 回答
0

如果python3 -m pip install jupyterlab不工作尝试py -m pip install jupyterlab。这个对我有用

于 2021-02-10T15:52:19.437 回答
-1

如果您使用的是 Windows 操作系统:python -m pip install jupyterlab

在 MAC 操作系统或 Linux 上:python3 -m pip install jupyterlab

于 2021-08-14T04:49:55.240 回答