I encountered several pitfalls when installing tensorflow. First, tensorflow does not support the latest version of python, so I reinstalled python version 3.6. The installation of tensorflow still reported an error, and it was fruitless through Baidu. I tried to solve it myself, so I recorded this pit here.
Error message: protobuf requires Python '>=3.7' but the running Python is 3.6.5
Solution: Reinstall tensorflow after updating pip.
Update command: python -m pip install --upgrade pip