MacOS Big Sur 11,算是很老的系统了,所以装起来有点费劲。
首先安装brew
按照官网的方法,直接执行下面语句即可安装:
export HOMEBREW_BREW_GIT_REMOTE="https://githubfast.com" # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="https://githubfast.com" # put your Git mirror of Homebrew/homebrew-core here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
但是由于系统刚装出来,所以有些openssl等库可能比较老,所以有可能无法安装成功,这时候就要git clone下载homebrew的源代码,然后执行源码里的执行文件即可,文件在brew/bin/brew (但是这个未安装版好像是有些问题的)。
也可以用中科大这个源来安装:
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
也可以直接在github网站下载pkg的安装包:
Releases · Homebrew/brew · GitHub
下载后直接安装(后来才知道,当前的版本需要Mac13以上的系统,并不适合)!
再用brew安装wget
brew install wget
装了半天,安了一大堆东西,好像还没装完。
安装Miniconda 的python环境
再用wget获取miniconda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py312_24.7.1-0-MacOSX-x86_64.sh
没有wget的时候,也可以直接到清华源网页下载:Index of /anaconda/miniconda/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
安装miniconda
sh Miniconda3-py312_24.7.1-0-MacOSX-x86_64.sh
安装conda后,选择激活环境(也可以使用source xx/bin/activate手动激活),(可选)安装uv
pip install pip -U
pip install uv
注意如果pip网速慢的话,可以加上镜像:
-i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
也可以设定环境变量:
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
安装exo AI并行框架
克隆exo
git clone https://github.com/exo-explore/exo
安装exo
# 进入exo目录执行
pip install -e .
如果安装的时候tinygrad不好下载,那么可以先到setup.py文件中屏蔽tinygrad这个句,稍后再单独安装它: pip install tinygrad
opencv-python需要改成"opencv-python>4.10.0.84"
启动exo
exo
好啦!用52415端口就可以管理啦!