mac 安装python

ps这是个备忘,没啥价值

文档

查看版本

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
相关推荐
fthux3 小时前
如果你用 Mac,那你可能需要 Noti Shift
macos·开源·github
花酒锄作田13 小时前
Pydantic校验配置文件
python
hboot13 小时前
AI工程师第四课 - 深度学习入门
pytorch·python·神经网络
ZhengEnCi1 天前
P2M-Matplotlib折线图完全指南-从数据可视化到趋势分析的Python绘图利器
python·matlab·数据可视化
ZhengEnCi1 天前
P2L-Matplotlib饼图完全指南-从数据可视化到图表定制的Python绘图利器
python·matlab
曲幽1 天前
你的REST接口还在“过度投喂”数据吗?——FastAPI + GraphQL实战避坑指南
python·fastapi·web·graphql·route·cors·rest·strawberry
用户8358086187911 天前
基于 Self-RAG 与列表级重排序的进阶 RAG 系统设计与实现
python
Warson_L2 天前
Python `Annotated` 与 LangGraph Reducer 学习笔记
python
韩师傅2 天前
海天线算法的前世今生
python·计算机视觉
韩师傅2 天前
当你的甲方设备过烂,要如何快速出效果?
python·计算机视觉