most people will only copy and paste the line, which will cause the > character to be interpreted by bash as redirection.
That could cause even more problems if the ">" character wasn't part of the last package or if there were more package names including that character.
That's why I say those packages names should be quoted (as in they should have quotes around them), like this
pip3 install --user tensorboard_logger "matplotlib>=2.2.2"
(or just simply pip3 install --user "tensorboard_logger" "matplotlib>=2.2.2")
Thanks Jan Trmal for pointing this out.