steps
- First you need to install miniforge3, i don't know how i previously installed this :P but i can provide you the latest way.
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
- Activate miniforge3.
source ~/miniforge3/bin/activate
- restart terminal.
- prevent conda to activate base environment by default.
conda config --set auto_activate_base False
- again restart terminal.
- export these commands
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
- Now is the main step to install tf and other packages (see config.yml) in a virtual env.
conda env create -f config.yml -n metal
- activate metal env.
conda activate metal.
- (optional) install pytorch, torchvision, you can follow steps here: https://developer.apple.com/metal/pytorch/
conda install pytorch torchvision torchaudio -c pytorch-nightly