gpt4 book ai didi

python - 使用 pip 或 conda 安装 jupyter lab 时遇到问题 - 找不到满足 ipykernel 要求的版本

转载 作者:行者123 更新时间:2023-12-01 09:30:11 25 4
gpt4 key购买 nike

安装 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)

访问后this Github page

我检查了pip版本:

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)'))",),)

最佳答案

我也遇到了类似的问题。就我而言(Ubuntu 16.04,python 3.5.2)命令

pip install jupyterlab

导致了类似的错误。读完本页后

https://github.com/jupyterlab/jupyterlab

我尝试了这个命令,它有效

python3 -m pip install jupyterlab

希望对你有帮助!

关于python - 使用 pip 或 conda 安装 jupyter lab 时遇到问题 - 找不到满足 ipykernel 要求的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50038714/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com