-
Ubuntu安装Jupyter Notebook教程
2020-09-21 02:57:29主要为大家详细介绍了Ubuntu安装Jupyter Notebook教程,具有一定的参考价值,感兴趣的小伙伴们可以参考一下 -
Ubuntu 安装Jupyter Notebook 及远程问题+Jupyter notebook 选择指定虚拟环境
2020-10-21 08:46:32Ubuntu 安装Jupyter Notebook 及远程问题+Jupyter notebook 选择指定虚拟环境 1.Ubuntu 安装Jupyter Notebook 及远程问题 1.1.目前系统状态:Ubuntu16.04 已经安装好了anaconda 并创建了虚拟环境 1.2.安装jupyter ...Ubuntu 安装Jupyter Notebook 及远程问题+Jupyter notebook 选择指定虚拟环境
1.Ubuntu 安装Jupyter Notebook 及远程问题
1.1.目前系统状态:Ubuntu16.04
已经安装好了anaconda 并创建了虚拟环境
1.2.安装jupyter
pip install jupyter
1.3.启动Jupyter
Jupyter notebook
1.4.设置jupyter notebook可远程访问
1.4.1生成一个notebook配置文件:
jupyter notebook –generate-config 可进入查看 cd ~/.jupyter/jupyter_notebook_config.py
1.4.2设置密码:
jupyter notebook password 会要求输入两次密码
1.4.3查看密码转换成sha1的密码:
Cat ~/.jupyter/jupyter_notebook_config.json 复制"sha1:和后面的一串密文"
1.4.4修改配置文件:
jupyter notebook –generate-config sudo gedit ~/.jupyter/jupyter_notebook_config.py 直接在第一行插入以下内容 c.NotebookApp.ip='10.132.224.31' c.NotebookApp.password = u"sha1: 和后面的一串密文" c.NotebookApp.open_browser = False c.NotebookApp.port = 8899 #可自行指定一个端口, 访问时使用该端口
1.4.5运行:
jupyter notebook 即可在其他电脑的浏览器中使用jupyter notebook
2.在jupyter notebook中使用指定的虚拟环境
2.1.为虚拟环境安装ipykernel包,比如我之前创建了一个名为tensorflow的虚拟环境,则
conda install -n tensorflow ipykernel
2.2.激活这个环境:
conda activate tensorflow
2.3.然后:
python -m ipykernel install --user --name tensorflow --display-name tf
-
ubuntu 安装 jupyter notebook
2020-04-02 16:09:46ubuntu 安装 jupyter notebook: ...安装pip安装jupyter后,终端仍然找不到jupyter笔记本 也许他在这里: ~/.local/bin/jupyter-notebook 定义个永久别名: cd gedit .bashrc alias jupyter=’~/.loc...ubuntu 安装 jupyter notebook:
pip3 install --upgrade pip
pip3 install jupyter安装pip安装jupyter后,终端仍然找不到jupyter笔记本
也许他在这里:
~/.local/bin/jupyter-notebook
定义个永久别名:
cd
gedit .bashrc
alias jupyter=’~/.local/bin/jupyter-notebook’ #最下面加入这行再保存退出
source .bashrc搞定!现在在终端里输入jupyter就可以启动了.
参考:
https://jupyter.readthedocs.io/en/latest/install.html
http://www.voidcn.com/article/p-mrvrfwxf-bss.html
https://blog.csdn.net/lllxxq141592654/article/details/82837635 -
python jupyter notebook安装_Ubuntu安装Jupyter Notebook教程
2021-01-12 07:46:52Jupyter Notebook是一个交互式笔记本,支持运行40多种编程语言。Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化...安装步骤环境:Docker(17.04.0-ce)、镜像Ubuntu(16.04.3)1. 更新软件列表roo...Jupyter Notebook是一个交互式笔记本,支持运行40多种编程语言。Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序文档,支持实时代码,数学方程,可视化和 markdown。用途包括:数据清理和转换,数值模拟,统计建模,机器学习等等。
二.安装步骤
环境:Docker(17.04.0-ce)、镜像Ubuntu(16.04.3)
1. 更新软件列表
root@787c084a44e4:~# apt-get update
2. 安装pip
root@787c084a44e4:~# apt-get install -y python3-pip
3. 更新pip(-m参数将库中的pip模块作为脚本运行,--upgrade更新pip模块)
root@787c084a44e4:~# python3 -m pip install --upgrade pip
4. 使用pip安装Jupyter
root@787c084a44e4:~# python3 -m pip install jupyter
5. 使用pip安装python绘图库(示例需要使用)
root@787c084a44e4:~# python3 -m pip install matplotlib
6. 创建Jupyter默认配置文件
root@787c084a44e4:~# jupyter notebook --generate-config
7. 生成SHA1加密的密钥,保存密钥,如'sha1:XXXXXX'
root@787c084a44e4:~# ipython
输入
from notebook.auth import passwd
passwd()
8. 设置密钥,修改配置文件
root@787c084a44e4:~# vim .jupyter/jupyter_notebook_config.py
在文件末尾增加
c.NotebookApp.password = u'sha1:XXXXXX'
9. 运行Jupyter(--ip指定ip,--no-browser不打开浏览器,--allow-root允许root运行)
root@787c084a44e4:~# jupyter notebook --ip=0.0.0.0 --no-browser --allow-root
10. 打开浏览器输入http://172.17.0.2:8888/
三.Jupyter示例
新建python3笔记
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(9)
y = np.sin(x)
plt.plot(x, y)
plt.show()
运行结果
四.异常情况
1. locale.Error: unsupported locale setting异常
设置locale,使用默认本地化设置
root@787c084a44e4:~# export LC_ALL=C
2. OSError: [Errno 99] Cannot assign requested address异常
运行Jupyter时增加--ip=0.0.0.0参数
root@787c084a44e4:~# jupyter notebook --ip=0.0.0.0 --no-browser --allow-root
3. ImportError: No module named 'matplotlib'异常
安装matplotlib库
root@787c084a44e4:~# python3 -m pip install matplotlib
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持服务器之家。
原文链接:http://www.cnblogs.com/faramita2016/p/7512471.html
-
ubuntu安装jupyter notebook
2021-03-14 19:59:24UBUNTU 安装 jupyter notebook 1.首先要安装pip Ctrl+Alt+T,打开终端。 在终端中输入: sudo apt install python-pip apt是应用列表,这个命令是从应用列表中拉取pip应用安装。 会要求你输入你的用户密码。 输入后,...UBUNTU 安装 jupyter notebook
1.首先要安装pip
Ctrl+Alt+T,打开终端。
在终端中输入:
sudo apt install python-pip
apt是应用列表,这个命令是从应用列表中拉取pip应用安装。
会要求你输入你的用户密码。
输入后,如下图。
2.接着在终端输入pip install jupyter 后,报错了:
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-buil
从网上找到解决方法命令:
sudo python -m pip install --upgrade --force pip
这句命令是用来升级应用pip的。
3.升级了之后,再pip install jupyter,成功。
4.我用jupyter notebook命令没能成功打开。
5.于是我按提示,在终端输入:
sudo snap install jupyter
回车,后来就安装成功了。
再用jupyter notebook命令就可以打开了。
6.想要关闭的时候,在终端页面按ctrl+c
会提示询问:关闭服务(y/n)
输入y即可关闭。
备注:
文章仅代表个人安装经历记录。 -
Ubuntu安装Jupyter notebook
2020-11-19 09:29:57使用pip3命令可以快速成功安装,这个过程相当顺利流畅。 pip3 install jupyter -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 1. 生成配置文件 jupyter notebook --generate-config 2. 创建密码... -
jupyter notebook可以安装python库吗_Ubuntu安装Jupyter Notebook教程
2021-02-01 07:20:31一.Jupyter介绍Jupyter Notebook是一个交互式笔记本,支持运行40多种编程语言。Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序...安装步骤环境:Docker(17.04.0-ce)、镜像Ubuntu(16.04.3)1... -
Ubuntu安装Jupyter Notebook
2017-10-18 09:14:00Jupyter Notebook是一个交互式笔记本,支持运行40多种编程语言。Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序文档,支持实时代码,数学方程,可视化和 markdown。用途包括:数据清理和... -
ubuntu中Jupyter notebook报错:jupyter: command not found
2019-09-19 23:08:00Jupyter notebook是基于ipython的一个...使用pip3安装jupyter pip3 install jupyter 这时候在终端输入jupyter notebook就会报jupyter: command not found的错误,原因是没有配置环境变量,在终端输入~/.local/bi... -
Ubuntu 安装Jupyter Notebook
2019-04-26 20:24:52原作者写的真的很详细,这里搬过来只是为了自己之后方便查找 ...环境:Docker(17.04.0-ce)、镜像Ubuntu(16.04.3) 1. 更新软件列表 ? 1 root@787c084a44e4:~# apt-get update 2. 安... -
开启远程访问_Ubuntu安装Jupyter notebook——开启远程访问
2021-01-09 21:38:29Ubuntu下安装jupyter notebook1. 使用Anaconda安装conda install jupyter notebook2. 使用pip安装pip install jupyter notebook二. Jupyter notebook 配置1. 生成配置文件jupyter notebook --generate-config2. ... -
Ubuntu安装jupyter notebook
2018-10-21 11:06:26首先更新 sudo apt-get update sudo apt-get upgrade sudo apt-get python-pip sudo install upgrade-pip sudo apt install python 3.7 -
docker开启远程访问_Ubuntu安装Jupyter notebook——开启远程访问
2020-11-29 01:28:32Ubuntu下安装jupyter notebook1. 使用Anaconda安装conda install jupyter notebook2. 使用pip安装pip install jupyter notebook二. Jupyter notebook 配置1. 生成配置文件jupyter 2. 创建密码使用python中的passwd... -
ubuntu安装jupyter notebook并运行出现各种bug
2018-09-19 14:35:36运行.ipynb文件需要安装jupyter notebook!...ubuntu16.04 安装jupyter notebook: (1)更新和升级包 sudo apt-get update sudo apt-get upgrade (2)安装pip sudo apt-get install py... -
Ubuntu 安装Jupyter Notebook 最基础的操作
2019-01-16 11:51:09安装Jupyter Notebook并用于深度学习 环境:Ubuntu16.04 如果没有安装pip请参考前一篇文章安装pip。 $ sudo pip install --upgrade pip $ sudo pip install jupyter 安装完成后在终端中运行... -
ubuntu安装jupyter
2018-03-29 16:09:12jupyter安装可以通过Anaconda或者pip,这里只介绍pip,更多方式请参考网站介绍:http://jupyter.org/install。 安装非常简单,只需要执行一条指令。...$ jupyter notebook 根据启动提示,在本机可以通过浏... -
ubuntu搭建jupyter notebook以及jupyter与spark的链接
2020-05-25 23:48:27ubuntu搭建jupyter notebook以及jupyter与spark的链接搭建jupyter notebook安装python3安装jupyter notebookjupyter与spark的链接修改配置文件链接jupyter与spark 搭建jupyter notebook 安装python3 更新软件包 sudo... -
Ubuntu安装Jupyter
2018-11-06 17:56:541 常规操作 ...jupyter notebook 命令找不到 3 解决办法一 # For Python 2 pip install --upgrade --force-reinstall --no-cache-dir jupyter # For Python 3 pip3 install --upgrade --for... -
Ubuntu 安装 Jupyter Notebook 以及远程操作等问题
2020-03-09 17:33:23一、Jupyter Notebook的一般安装 ① 安装pip sudo apt install python3-pip ② 解决pip下载速度慢问题 这里使用清华大学的,参考https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ 升级 pip 到最新的版本 (>... -
Ubuntu安装jupyternotebook无法创建python3文件
2020-03-12 19:08:27解决方法: sudo bash jupyter notebook --allow-root 打开浏览器输入:http://localhost:8888/tree 新建python3文件,成功 -
0060-【linux系统】-Ubuntu安装Jupyter Notebook
2018-07-07 10:20:24jupyter notebook的安装和打开 安装非常简单,在终端输入: pip install jupyter 打开jupyter notebook 也只需要在终端输入: jupyter notebook 远程访问配置 1. 生成登录密码 ... -
linux ubuntu安装Jupyter Notebook打开运行. ipynb文件
2018-03-05 15:34:002.安装jupyter pip install jupyter 过程中可能会出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-*(其中×与要安装的软件有关) 解决方法:sudo python -m p... -
ubuntu安装 Jupyter notebook 显示错误: ImportError: No module named 'pysqlite2'
2017-05-03 00:51:59使用ubuntu16.04安装 Jupyter notebook 显示错误: ImportError: No module named 'pysqlite2' -
ubuntu安装jupyter—zsh: command not found: jupyter
2020-02-29 16:04:53ubuntu上使用pip安装jupyter,运行jupyter出现:zsh:command not found:jupyter 解决方法:终端运行 ~/.local/bin/jupyter-notebook 之后出现下图,直接粘贴所给网址在网页打开即可 ... -
ubuntu14.04安装jupyter notebook
2018-03-29 04:07:00ubuntu14.04安装jupyter notebook 1、使用pip安装Jupyter notebook: pip install jupyter notebook 2、创建Jupyter默认配置文件: jupyter notebook --generate-config 3、输入ipython,进入... -
caffe-jupyter(Linux Ubuntu下Jupyter Notebook的安装)
2018-10-04 18:33:07Linux Ubuntu下Jupyter Notebook的安装 Jupyter Notebook, 以前又称为IPython notebook,是一个交互式笔记本, 支持运行40+种编程语言. 可以用来编写漂亮的交互式文档. 安装步骤: pip install --upgrad.... -
Ubuntu下Jupyter Notebook的安装
2018-05-27 00:34:00pip install --upgrade pip //更新pip ...jupyter-notebook 或 jupyter notebook 为了有权限创建文件,需要进入相应的目录下开启服务 /home/jiqing/.local/share/jupyter 并赋予目录777权限。 ...