## 新 MAC 安装软件 - https://github.com/runjuu/InputSourcePro - https://github.com/astral-sh/uv - https://nodejs.org/zh-cn/download - https://github.com/exelban/stats - https://brew.sh/ - https://github.com/pyenv/pyenv - https://iterm2.com/ ## 常用命令 ### uv uv python install uv venv uv venv -p 3.11 source .venv/bin/activate uv pip install numpy ### python brew install pyenv openssl # 安装一个新版本的 Python,比如 3.11,并指定 OpenSSL env PYTHON_CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl)" pyenv install 3.11.9 pyenv global 3.11.9 vi ~/.zshrc export PATH="$HOME/.pyenv/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv init -)" git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" pyenv virtualenv 3.11.9 qlib pyenv activate qlib nginx sudo lsof -i -P -n | grep LISTEN brew services start nginx brew services info nginx open /opt/homebrew/etc/nginx 查看端口 sudo lsof -i -P -n | grep LISTEN 需要清理大文件的路径 huggingface ollama orbstack pyenv ~/src/llama.cpp/build/models 迁移文件 rsync -avP .cache /Volumes/data mv .cache .cache_bk ln -s /Volumes/data/.cache ~/.cache hf download Qwen/Qwen2.5-3B-Instruct du -sh /Volumes/data/.cache/huggingface/hub/models--Qwen--Qwen2.5-3B-Instruct rsync -avP .ollama /Volumes/data mv .ollama .ollama_bk ln -s /Volumes/data/.ollama ~/.ollama ollama list rm -r .ollama_bk 时间机器 diskutil apfs list diskutil apfs listSnapshots disk3s5 tmutil listlocalsnapshots / 截图 | 功能 | 快捷键 | | ------ | ------------------------------------------------- | | 选区截图复制 | **`Control + Command + Shift + 4`** | | 全屏截图复制 | **`Control + Command + Shift + 3`** | | 指定窗口复制 | **`Control + Command + Shift + 4` → 再按空格 → 点击窗口** |