Tensorflow 설치


먼저 conda 가상환경을 만들어주겠습니다.

% conda info --envs
% conda create -n "tf" python==3.8.5
% conda activate tf

만약 처음에 Tensorflow 설치를 안하셨으면 아래 명령어를 실행해주세요!

% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/apple/tensorflow_macos/master/scripts/download_and_install.sh)"

이제 tensorflow와 그 외 Library들을 install을 해주겠습니다.

% cd tensorflow_macos/arm64
% pip install --upgrade --no-dependencies --force numpy-1.18.5-cp38-cp38-macosx_11_0_arm64.whl
% pip install --force wheel setuptools cached-property six
% pip install --upgrade --no-dependencies --force h5py-2.10.0-cp38-cp38-macosx_11_0_arm64.whl tensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl
% pip install absl-py astunparse flatbuffers gast google_pasta keras_preprocessing opt_einsum protobuf tensorflow_estimator termcolor typing_extensions wrapt wheel tensorboard typeguard
% pip install --upgrade --force --no-dependencies tensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl

축하합니다! 당신은 Tensorflow 설치를 완료하셨습니다