1、若之前没升级过pip,建议先升级
sudo pip install --upgrade pip
若提示报错
ModuleNotFoundError: No module named 'distutils.util'
则先执行以下语句,注意python3.6对应python3.6版本,请按当前使用的python版本进行安装
sudo apt-get install python3.6-distutils
2、安装jupyter
#先安装这个否则会报错
pip install msgpack
#下载jupyter
pip install jupyter
#安装snapd否则使用不了snapd命令
sudo apt-get install snapd
#安装jupyter
sudo snap install jupyter
3、打开jupyter notebook
jupyter notebook