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
相关推荐
king135987455011 小时前
EmbeddingGemma 2 270M 实测:Mac CPU、PDF/Word、256d 与 FTS5
macos·pdf·word
han688911 小时前
selenium之实战
笔记·python·selenium·测试工具·自动化
源图客11 小时前
浏览器开发者工具使用
开发语言·php
yumgpkpm11 小时前
(CDH 7)CDP Private Cloud Base 7.3.1 → Acceldata ODP 3.3.6.4 引擎迁移风险评估表
服务器·人工智能·hadoop·python·华为·zookeeper·hbase
刘天远11 小时前
Agent成本核算实现:事件表、状态分布与Python归集
前端·数据库·人工智能·python
Python图像识别12 小时前
40-【2027毕设】YOLO11面部口罩检测识别系统 - Python完整源码+PyQt5界面+训练模型+数据集
python·qt·课程设计
赵大仁12 小时前
开源清单怎么维护才不烂掉?GitHub Actions 每周查死链 + 软 404 检测实录
python·ci/cd·自动化·开源项目·踩坑·github actions·json schema
念何架构之路12 小时前
go-grpc核心抽象接口
开发语言·后端·golang
玩AI的奶茶12 小时前
24GB 显存能跑多大的模型?参数量、精度与显存占用对照表
人工智能·python·算法·ai·aigc·gpu算力·算力租赁
kimnoic12 小时前
Python操作Git命令的详细指南
开发语言·python