how to install tensorflow 2.4 code example Example 1: install tensorflow pip install tensorflow Example 2: install tensorflow sudo pip3 install tensorflow