Sponsored By
















references: www.youtube.com/watch?v=W_Qbrnp6uis

 

 

1. Install miniforge3: https://github.com/conda-forge/miniforge/#download

> for Apple Silicon link

 

2. Restart terminal so that Conda is recognized

> Type Conda in prompt to check

conda --version

 

3. Create Conda environment with python3.8 since python3.9 is the default from Miniforge (user python3.8 for your name):

> conda create —name [ conda_name ] python=3.8

conda create —name tensorflow_conda python=3.8

 

4. Activate virtual environment: conda activate <env_name>

 

5. Download the zipped tar file from apple/tensorflow_macos

> https://github.com/apple/tensorflow_macos/releases

 

6. Unzip the tar file

6-1. Navigate to Downloads

cd Download

6-2. Tar -xvf <filename>

sudo tar -zxvf tensorflow_macos/

 

 

 

7. Get the working directory of arm64 within that folder

7-1. Once there, type: pwd

7-2. Set variables

7-2-1. libs=location of arm64 above

> libs=“/Users/smin/Downloads/tensorflow_macos/arm64/“

7-2-2. env=location of your python virtual environment

> env=“/Users/smin/miniforge3/envs/<env_name>

(tensorflow_conda)> env=“/Users/smin/miniforge3/envs/tensorflow_conda

 

8. Conda install cached-property

9. Conda install six

10. pip install –upgrade -t “$env/lib/python3.8/site-packages/” –no-dependencies –force “$libs/grpcio-1.33.2-cp38-cp38-macosx_11_0_arm64.whl”

11. pip install –upgrade -t “$env/lib/python3.8/site-packages/” –no-dependencies –force “$libs/h5py-2.10.0-cp38-cp38-macosx_11_0_arm64.whl”

12. pip install –upgrade -t “$env/lib/python3.8/site-packages/” –no-dependencies –force “$libs/tensorflow_addons-0.11.2+mlcompute-cp38-cp38-macosx_11_0_arm64.whl”

 

13. conda install -c conda-forge -y absl-py

14. conda install -c conda-forge -y astunparse

15. conda install -c conda-forge -y gast

16. conda install -c conda-forge -y opt_einsum

17. conda install -c conda-forge -y termcolor

18. conda install -c conda-forge -y typing_extensions

19. conda install -c conda-forge -y wheel

20. conda install -c conda-forge -y typeguard

 

21. pip install wrapt flatbuffers tensorflow_estimator google_pasta keras_preprocessing protobuf

 

22. pip install –upgrade -t “$env/lib/python3.8/site-packages/” –no-dependencies –force “$libs/tensorflow_macos-0.1a1-cp38-cp38-macosx_11_0_arm64.whl”

 

Make sure this is pointing to the right version within your downloads folder

 

23. pip install tensorboard

 

24. type python into the command prompt to open a python shell

 

25. Check it done

import tensorflow as tf
print(tf.__version__)

 



Sponsored By















+ Recent posts