
在python环境中安装jupyter notebook报错及解决方法,以及如何运行jupyter
可以生成一个快捷方式。中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/(1)首先在cmd中进入你的python路径的scripts下,下面是我的python路径。阿里
1.定位路径:在你安装的python路径的scripts下,敲入cmd
2.网络 不挂梯子
3.输入
pip install jupyter
(1)报错:n _error_catcher yield
pip --default-timeout=100 install jupyter
(2)报错:in read data = self._fp.read(amt) if not fp_closed else b""
用以下命令:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 加上需要安装的库即可
更新:
pip install 所要安装的库 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
(3) 报错如图所示
采用该办法完美解决:
因为我的版本是python3.8
python3 -m pip install --upgrade pip
pip3 --version
补充:如果你不是3以上的版本,只要把图中的3去掉就可,其他字母保持不变
最后再输入清华镜像源进行下载
pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
最后成功截图如下
附录国内的镜像源(pip源):
如下:
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
4.如何启动jupyter notebook
(1)首先在cmd中进入你的python路径的scripts下,下面是我的python路径
D:\PythonSoftware\Scripts
(2)
法一:输入jupyter notebook,回车后会在浏览器中打开jupyter的Home页面,即可进行编辑。
http://localhost:8888/tree?token=a2b5e412c1df54ef23154bded7c949fd21abd66ba7c0eefa
http://localhost:8888/tree?token=a2b5e412c1df54ef23154bded7c949fd21abd66ba7c0eefa
http://127.0.0.1:8888/tree?token=a2b5e412c1df54ef23154bded7c949fd21abd66ba7c0eefa
法二:D:\PythonSoftware\Scripts下的 jupyter-notebook.exe打开,位置在jupyter的安装目录内。可以生成一个快捷方式
更多推荐
所有评论(0)