Skip to content

Troubleshooting

Daniel Smilkov edited this page Aug 15, 2023 · 2 revisions

pyenv install not working on M1

If your pyenv does not work on M1 machines after installing xcode, you may need to reinstall xcode command line tools. Stack Overflow Link

No module named _lzma

Follow instructions from pyenv:

  • Uninstall python via pyenv uninstall
  • Run brew install openssl readline sqlite3 xz zlib tcl-tk
  • Reinstall python via pyenv install
$ sudo rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install

Too many open files on MacOS

When downloading and pre-processing TFDS datasets, you might get too many open files error. To fix, increase the max open files limit.

Installing TensorFlow on M1

M1/M2 chips need a special TF installation. These steps are taken from the official Apple docs:

  1. Click here to download Conda env
  2. Run:
chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate
  1. Install the TensorFlow 2.9.0 dependencies: conda install -c apple tensorflow-deps=2.9.0