I am trying to set up a ML environment on my new Mac device which has a M1 chip. I followed this guide to get TensorFlow installed. However I do not know how to set up the environment on Pycharm. When I try to install Tensorflow as a package it outputs the following:
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none) ERROR: No matching distribution found for tensorflow-macos
I have tried using different Python versions but it the same output keeps popping.
Could you help me with setting up the environment on Pycharm? More specifically what environment and interpreter should I select?
Thank you.
CodePudding user response:
For me, I always follow this repository (Thanks to Daniel Bourke). Follow this steps which are provided in the repository and I hope this will get the job done. Enjoy <3
https://github.com/mrdbourke/m1-machine-learning-test
CodePudding user response:
Try:
brew install hdf5
export HDF5_DIR=/opt/homebrew/opt/hdf5
pip install --no-binary=h5py h5py
pip install tensorflow-macos
This worked for me.
CodePudding user response:
I use Anaconda on my Macbook Pro M1 and set up a separate environment for each problem. Works fine.