pip install jupyter报错30ERROR

本文提供了一套解决方案来应对pip在安装jupyter过程中遇到的错误。首先通过更新pip到最新版本来确保安装过程顺利进行,其次安装特定版本的setuptools以避免潜在冲突,最后再尝试安装jupyter。此外还介绍了如何使用清华镜像加速pip安装过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

pip install juptyer报错30ERROR

报的错误如下:

30ERROR: Exception:
Traceback (most recent call last):
  File "E:\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 425, in _error_catcher

解决方法:

#首先更新pip
python -m pip install --upgrade --force pip
#然后下载一个库
pip install setuptools==33.1.1
#最后再安装jupyter
pip install jupyter

启动jupyter和修改默认配置:

#启动jupyter,网页上打开
jupyter notebook

#修改jupyter默认配置,例如端口、默认启动路径
jupyter notebook --generate-config
#会产生一个存储配置文件的路径,然后修改配置文件中的配置即可

#例如修改端口:
## The port the notebook server will listen on (env: JUPYTER_PORT).
#  Default: 8888
c.NotebookApp.port = 8001  #在这里修改
#修改默认启动路径:
## The directory to use for notebooks and kernels.
#  Default: ''
c.NotebookApp.notebook_dir = 'F:\pythonStudy'

加一个常用的,pip清华镜像:

#例子:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider  #清华镜像

			-i http://pypi.douban.com/simple/   #豆瓣镜像
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值