Python Forum
python and py report different versions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python and py report different versions
#1
I've installed Python 3.7.5 on a Windows 10 machine. No other version of Python was ever installed on that machine that I know of (and no-one else uses it). On the Windows Command Prompt, when I query the version with python -V I get Python 2.4.5, while when I use py -V I get Python 3.7.5.

I'd like to know why because I know that one can tie oneself in knots when packages (e.g. pip) detect the 'wrong' version.

What I have in my system's PATH is %homepath%\AppData\Local\Programs\Python\Python37\, and the same with Scripts\ appended.

Thanks
Reply


Messages In This Thread
python and py report different versions - by lordvold - Nov-27-2019, 05:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help with Allure report Nik1811 0 211 Apr-22-2024, 09:59 AM
Last Post: Nik1811
  Unable to download TLS Report attachment blason16 6 626 Feb-26-2024, 07:36 AM
Last Post: Pedroski55
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 382 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  Allure Report Generation rotemz 0 825 Jan-24-2023, 08:30 PM
Last Post: rotemz
Question log.exception() without arguments in old Python versions? cthart 5 1,248 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
  Right to left alignment in python report using Reportlab jalal0034 1 1,894 Sep-27-2022, 04:25 AM
Last Post: jalal0034
  Python versions with libexpat fixes raghupcr 5 2,628 Feb-24-2022, 06:26 PM
Last Post: raghupcr
  Installed versions of Python SamHobbs 5 2,631 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  Print Report Invoice nio74maz 0 1,604 Jun-17-2021, 08:25 AM
Last Post: nio74maz
  Different versions of Python3 and Python Led_Zeppelin 2 2,373 Jun-16-2021, 05:31 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020