I am on Fedora 27 and a #!/usr/bin/env python3 gives me #python 2.7 according to sys.version

But when I run env python3 in the shell it shows me python 3.6

Why???