Open Leon-lianglyu opened 3 years ago
You can refer to this article to install Apple's TensorFlow + TensorFlow Datasets:
2.) Activate your virtual environment, then
$ conda activate <environment_name>
$ pip install tensorflow-datasets
It should install TensorFlow Datasets v4.2.0.
You can refer to this article to install Apple's TensorFlow + TensorFlow Datasets:
- ) Install TensorFlow https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060
2.) Activate your virtual environment, then
$ conda activate <environment_name> $ pip install tensorflow-datasets
It should install TensorFlow Datasets v4.2.0.
Hi, thanks for it. Tensorflow install is all good and the problem is after I installed the tfds. It updated several packages that violates the tensorflow-macos requirement. Alsom, I can't downgrade them using "force-reinstall".
Maybe you could refer to the environment.yml in that article. Using pip=20.2.4 and python=3.8.
In my case, I did it successfully:
#
# Install MiniForge via Homebrew
#
$ brew install miniforge
$ conda init "$(basename "${SHELL}")"
#
# Download Python packages list:
#
$ curl -fsSLo ./environment.yml https://raw.githubusercontent.com/mwidjaja1/DSOnMacARM/main/environment.yml
#
# Create a virtual environment
#
$ conda env create --file=environment.yml --name=mytf2
$ conda activate mytf2
# $ conda deactivate
$ pip install --upgrade --force --no-dependencies \
https://github.com/apple/tensorflow_macos/releases/download/v0.1alpha3/tensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl \
https://github.com/apple/tensorflow_macos/releases/download/v0.1alpha3/tensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl
$ conda install jupyterlab -y
# or
$ conda install notebook -y
$ conda install matplotlib -y
$ conda install pandas -y
$ conda install scikit-learn -y
$ pip install tensorflow-datasets
$ jupyter-lab
# or
$ jupyter notebook
Hi guys, I've followed the instruction to install tensorflow-macos in a miniforge3 env. After, I've installed tensorflow-datasets package through pip install, it warns:
tensorflow-macos 0.1a3 has requirement grpcio~=1.32.0, but you have grpcio 1.37.1. tensorflow-macos 0.1a3 has requirement h5py~=2.10.0, but you have h5py 3.2.1. tensorflow-macos 0.1a3 has requirement numpy~=1.19.2, but you have numpy 1.20.2. tensorflow-macos 0.1a3 has requirement protobuf~=3.13.0, but you have protobuf 3.15.8. tensorflow-macos 0.1a3 has requirement tensorflow-estimator~=2.3.0, but you have tensorflow-estimator 2.4.0.
Will this be a problem? If so, how can I downgrade those packages to meet the requirement? I've tried "pip install --force-reinstall grpcio~=1.32.0", but it gives me : distutils.errors.CompileError: command 'gcc' failed with exit status 1.
Thanks!