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/ #豆瓣镜像