install tensorflow 2 with gpu mac code example Example: install tensorflow sudo pip3 install tensorflow