Python Forum
Installed versions of Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installed versions of Python
#1
I am new to Python. I have not been as methodical as I should about installing Python. I am interested in some guidance about the versions I have installed.

I am using Windows 10 and Microsoft Visual Studio. I have used Visual Studio for doing as much of the the installations it does.

When I execute Python from a command prompt I get Python 3.7.1.

Executing:

os.path.dirname(sys.executable)
I get C:\Program Files\Python37 and that is the only version in C:\Program Files. I also have a:

C:\Users\Sam\AppData\Local\Programs\Python\Python35

And that concerns me. I am concerned I might get confused about what version I am using.

In Visual Studio the only version of Python that is listed in Python Environments is 3.7. So am I safe in assuming I am using Python 3.7.1? Will the version 3.5 in AppData be a problem?

Correction: in Visual Studio when I choose to Add/Remove Python Environments I get 64-bit Python versions 3.5, 3.6 and 3.7, 32-bit Python version 3.7 and Anaconda 5.2.0.
Reply
#2
Should not be a problem. If you run IDLE what version does it say? That is the last check. But you will find VS Code to be a far better environment than IDLE.
SamHobbs likes this post
Reply
#3
(Sep-01-2021, 07:34 PM)jefsummers Wrote: Should not be a problem. If you run IDLE what version does it say? That is the last check. But you will find VS Code to be a far better environment than IDLE.

Thank you. I think I do not have IDLE yet, I will consider installing it. I will install whatever IDE that a book uses once I choose a book.

Note that there is confusion about names. Microsoft seems to use confusing names intentionally to confuse. Visual Studio and Visual Studio Code are very different. Visual Studio is the one that has been around for about two decades and is best for Microsoft technology. Visual Studio Code is more generalized and supports non-Microsoft technology better. I am familiar with Visual Studio so I will use it if possible but I fully understand I will probably need to switch to something else later.
Reply
#4
You could install newer version look at Python 3.9/3.8 and pip installation under Windows
Visual Studio Code is more geared against Python,take a look at VS Code from start
(Sep-01-2021, 07:19 PM)SamHobbs Wrote: So am I safe in assuming I am using Python 3.7.1? Will the version 3.5 in AppData be a problem?
It's no problem to have many version i have a lot from python.org and Anaconda/Miniconda...ect.
For main version used most i like that python and pip point to that version(Windows Environment Variables Path) for easier editor setup and stuff,
then can use py to call other version.
Example same in cmd here use cmder(recommend).
G:\div_code
λ python -V
Python 3.9.5

G:\div_code
λ pip -V
pip 21.2.4 from c:\python39\lib\site-packages\pip (python 3.9)

G:\div_code
λ py -0
Installed Pythons found by py Launcher for Windows
 -3.9-64 *
 -3.8-64
 -3.7-32
 -3.6-32
 -3.5-32
 -3.4-32
 -2.7-32

G:\div_code
Reply
#5
(Sep-01-2021, 08:12 PM)snippsat Wrote: You could install newer version look at Python 3.9/3.8 and pip installation under Windows
Thank you. Yes, of course. Except it is a little complicated for me. Without getting into details, I certainly can use the latest version of Python if I do not use Visual Studio as my IDE (I assume I can if I use Visual Studio Code).
Reply
#6
True - VSCode seems aware of the various versions on your device, and you can choose the environment easily
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 312 Feb-17-2024, 12:43 PM
Last Post: deanhystad
Question log.exception() without arguments in old Python versions? cthart 5 1,153 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
  Python versions with libexpat fixes raghupcr 5 2,478 Feb-24-2022, 06:26 PM
Last Post: raghupcr
  Different versions of Python3 and Python Led_Zeppelin 2 2,312 Jun-16-2021, 05:31 AM
Last Post: snippsat
  Python Versions ThatTamyBot 2 2,682 Mar-11-2021, 11:27 AM
Last Post: ThatTamyBot
  I seem to have two versions of python 3.7.9 installed miner_tom 7 4,433 Nov-22-2020, 06:42 PM
Last Post: miner_tom
  pip list to show all versions of a package installed pvbadiger05b 4 2,490 May-21-2020, 06:48 PM
Last Post: jameshonest
  Package installed through Anaconda "not found" by Python zonova 0 2,294 May-08-2020, 11:50 PM
Last Post: zonova
  How to change directory to any folder where python is not installed ? firashelou 4 2,616 Apr-03-2020, 02:43 PM
Last Post: firashelou
  Is Python Installed? DaveMc 6 2,996 Jan-26-2020, 08:31 AM
Last Post: buran

Forum Jump:

User Panel Messages

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