You can write a start-script shell in which you import the actual script and catch errors for the syntax:
try:
import real_module
except SyntaxError:
print('You need to run this with Python 3')
, real_module.py Python 3, Python 3, .
, , script, , , 3. , script Python 3:
import sys
if sys.version_info[0] < 3:
print('You need to run this with Python 3')
sys.exit(1)
import real_module