ps这是个备忘,没啥价值
文档
- 菜鸟文档
https://www.runoob.com/python3/python3-install.html - jupyter文档
https://www.runoob.com/jupyter-notebook/jupyter-notebook-tutorial.html
查看版本
python3 -V
pip3 --version
更新pip3
pip3 install --upgrade pip
安装jupyter
pip3 install jupyter 安装
python3 -m jupyter notebook
jupyter --version 是找不到的,要搞环境变量
python3 -m jupyter --version 用python3能看到
pip3 show jupyter 看安装路径
python3 -m jupyter notebook 启动jupyter
vi ~/.bash_profile修改环境变量
export PATH="/Library/Frameworks/Python.framework/Versions/3.12/bin:$PATH"
- 环境变量可能在很多地方
~/.bash_profile
~/.bashrc
~/.profile
~/.zshrc
~/.zprofile
/etc/profile
/etc/bashrc
/etc/zshrc
/etc/paths
/etc/paths.d/ - 查看环境变量(因为历史上反复设置,互相引用,一个变量出现好多次,超级长)
echo $PATH | tr ':' '\n' | uniq -c