My code builds always incorporate Python 2.7 instead of 3.6, how to solve?

0

When I create programs executables I have suffered with this, and if anyone knows how to help, I thank you. Follow the command line that I usually use to build at the prompt.

  

python 'filename' .py build

    
asked by anonymous 10.10.2017 / 01:55

1 answer

1

The executable binary of Python version 2.7 usually has no suffix:

$ python --version
Python 2.7.5

The executable binary of Python version 3.x has suffix to avoid conflicts:

$ python3 --version
Python 3.4.5

If you really want to use version 3 to do something, use the corresponding executable.

    
10.10.2017 / 02:13