install pip gpu tensorflow2 ubuntu code example Example: install tensorflow sudo pip3 install tensorflow