Armbian安装Python

安装pip及测试

不用编译安装,armbian里面竟然自带了python!!!

apt install python3-pip

使用示例

pip3 install numpy

 

安装jupyter

pip切换成国内清华源

cd ~

mkdir .pip

cd .pip/

vim pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

安装jupyter

sudo apt-get install python3.9-dev

pip3 install psutil

pip3 install jupyter

使用jupyter

jupyter notebook password

jupyter notebook --generate-config

echo "c.ConnectionFileMixin.ip = '0.0.0.0'" >> ~/.jupyter/jupyter_notebook_config.py

echo "c.NotebookApp.ip = '0.0.0.0'" >> ~/.jupyter/jupyter_notebook_config.py

使用用如下命令

jupyter notebook --allow-root

测试使用

THE END
分享
二维码
海报
Armbian安装Python
安装pip及测试 不用编译安装,armbian里面竟然自带了python!!! apt install python3-pip 使用示例 pip3 install numpy   安装jupyter pip切换成国内……