Homebrew 修改和复原仓库源

本文内容复制自 https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/ , 版权归原作者所有。 修改为清华大学的镜像源# 以下针对 mac OS 系统上的 Homebrew git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git git -C

安装 Python virtualenv

virtualenv 是一款 Python 虚拟运行环境管理工具。 这里介绍使用 pip 来安装 virtualenv, 如果所安装的 Python 没有自带 pip,可以参考这篇文章pip 的安装。 Python 2 环

Python 安装 pyenv(macOS)

安装先更新 brew :brew update 安装 pyenv:brew install pyenv 安装 zlib 依赖 安装:brew install zlib 将zlib的头文件及库文件添加至系统默认的路径 先使用 brew list zlib 查