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

被折叠的 条评论
为什么被折叠?



