遇到的坑:
pip3 install jupyter后无jupyter命令
原因:
pip3在我电脑装了两个,直接使用pip3默认为我自己目录/home/micheal/.local/xxx下的pip3 而非/usr/bin/下
解决:
方法1:将装了jupyter的目录加入PATH
方法2:重新下载jupyter到/usr/bin 用sudo
为提高下载速度可使用国内的pip源 如tsinghua
sudo pip3 install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
出现仓库信任问题添加信任即可 --trusted-host pypi.tuna.tsinghua.edu.cn