1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How Should I Set Default Python Version In Windows?

Discussão em 'Python' iniciado por Stack, Outubro 1, 2024 às 03:23.

  1. Stack

    Stack Membro Participativo

    I installed Python 2.6 and Python 3.1 on Windows 7 and set environment variable: path = d:\python2.6.

    When I run python in cmd, it displays the python version 2.6, which is what I want!
    But, when I wrote a script in a bat file and ran it, the displayed python version was 3.1.

    import sys
    print (sys.version)


    What's going on here?

    Continue reading...

Compartilhe esta Página