Installing Packages - Python Packaging User Guide
>>> python3 --version Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'python3' is not defined. It’s because this command and other suggested commands in this tutorial are intended to be run in a shell (also called a terminal or console).