pyenv
TensorFlow GPU on Mac
To enable GPU usage on Mac, TensorFlow currently only supports python versions 3.8.x Check out the below post on how to manage multiple python versions on your OS safely. Then be sure to install python 3.8.x Now, this might be trivial and you may want to use your GPU always, but believe me it's easy to mess up a python environment. Messing up your system environment might be catastrophic prompting you to completely delete python and re-do your entire setup.
- Information Technology > Hardware (1.00)
- Information Technology > Graphics (1.00)
- Information Technology > Artificial Intelligence > Machine Learning (0.70)
Weights & Biases - Intro to Pyenv for Machine Learning
If you jump between a lot of different machine learning projects, you probably find yourself running something like pip install -r requirements.txt By default, pip install puts libraries in your systemwide libraries folder. If one of your projects has requirements that conflicts with another, switching to that project and running pip install will effectively break your other project by modifying the systemwide python libraries it needs to run. Worse yet, many projects haven't fully moved to python3 yet! So you may find yourself juggling systemwide requirements across python2 and python3. A lot of folks use docker for this type of workflow issue.