My code Builds always incorporate Python 2.7 instead of 3.6, how to resolve?

Asked

Viewed 76 times

0

When I will create executables of the programs I have suffered from it,and if anyone knows how to help, I thank.Follow the command line that I usually use to build at the prompt.

python'filename'. py build

  • When compiling, the version of Python used is always 2.7, when the goal is to compile with version 3.6, the friend downstairs has already explained to me to use the suffix to specify, but even so, it is said that python3 is not recognized as an internal program.

1 answer

0


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.

  • He clarified this part, but when I try to check the version of python3 or use it, it says that: "python3 is not recognized as an internal command "even if I use it constantly, what I can do now?

  • How about: https://www.python.org/ftp/python/3.6.3/python-3.6.3.exe

  • I think I understand the problem, Python 3 was not in Path.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.