香橙派树莓派安装jupyter notebook(apt源安装法)
香橙派树莓派安装jupyter notebook实验平台系统orangepi pcubuntu_focal_linux5.4.65//查看源里是否有jupyter notebookapt list jupyter-*//安装jupyter notebooksudo apt-get install jupyter-notebook//创建配置文件jupyter notebook --generate
·
香橙派树莓派安装jupyter notebook
| 实验平台 | 系统 |
|---|---|
| orangepi pc | ubuntu_focal_linux5.4.65 |
//查看源里是否有jupyter notebook
apt list jupyter-*

//安装jupyter notebook
sudo apt-get install jupyter-notebook
//创建配置文件
jupyter notebook --generate-config
//编辑配置文件
sudo vi ~/.jupyter/jupyter_notebook_config.py
//按下键盘上的i键开始编辑,添加上以下四条
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.notebook_dir = '/home/orangepi/'//针对自己向设置的目录进行更改,这个目录就是进入jupyter后的目录,一般就是你放置代码的目录
//退出编辑
//按下Esc键,输入":wq",按下回车即可保存并退出
//设置jupyter notebook的访问密码
jupyter notebook password
//启动jupyter notebook
jupyter notebook --allow-root

点击弹出的http://orangepipc:8888/即可访问jupyter,针对不同平台,名字会不一样,没有弹出的话就输入香橙派或树莓派的IP地址+8888即可,例如树莓派的ip地址位192.168.31.1,则jupyter的地址就为192.168.31.1:8888/
输入密码进入进入jupyter
根据自己的python环境编写相应的测试程序
我这里给出一个简单的numpy测试程序,输出自己numpy的版本
import numpy as np
print(np.__version__)
昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链
更多推荐

所有评论(0)