Python Forum
Can Python 3.6 program handle Python 2.7 algorithm?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Python 3.6 program handle Python 2.7 algorithm?
#1
I have been learning Python programming in Zed A. Shaw's book "Learning Python 3 the Hard Way" in which I write Python programs in Notepad++ and then execute the programs in the Power Shell (command line) window of my Windows 7 laptop computer (and sometimes on my Windows 10 desktop computer). I originally downloaded Python 3.6 onto both of my computers. I am interested in running a Python program that interfaces with my Zeo EEG device (http://www.sleepstreamonline.com/rdl/exa...l#examples), but it uses Python 2.7. Can I still run this Python 2.7 Zeo program on my computer, or will I need to first download Python 2.7 onto my computer? I apologize for such a basic question. Any advice would be greatly appreciated.
Reply
#2
You might be able to, but I doubt it. You would either need to convert the 2.7 program to 3.0+, or install Python 2.7 on your computer.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
It's no problem to have have both python 2.7 and 3.6 on same pc(Windows)
Se tutorial here about using py instead of python command.
Do not mark the option "add to Path v" on when install Python 2.7.
Anaconda | Miniconda are and other option,they are stand alone distribution.

Here some of my versions,no cmd/powershell rubbish but cmder Wink
C:\
λ python -V
Python 3.7.3

C:\
λ pip -V
pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7)

C:\
λ py -2.7 -V
Python 2.7.9

C:\
λ py -3.5 -V
Python 3.5.2

G:\
λ cd anaconda3

G:\Anaconda3
λ python -V
Python 3.7.1

G:\Miniconda3
λ python -V
Python 3.6.3 :: Anaconda, Inc.

G:\Anaconda3
λ py -3.4 -V
Python 3.4.2
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python OOP program structure TeddyT 0 281 Apr-26-2025, 10:00 AM
Last Post: TeddyT
  Algorithm for extracting comments from Python source code Pavel1982 7 2,997 Aug-28-2024, 02:50 AM
Last Post: timothyferriss
  kill python execution program lebossejames 0 800 Mar-16-2024, 11:16 AM
Last Post: lebossejames
  Unexpected termination of program when using JDBC drivers in python with jaydebeapi skarface19 2 2,116 Feb-17-2024, 12:01 PM
Last Post: skarface19
  How do I handle escape character in parameter arguments in Python? JKR 6 5,719 Sep-12-2023, 03:00 AM
Last Post: Apoed2023
  Some help with my first python class and importing ....im making a lidar program jttolleson 7 2,895 Jul-28-2023, 08:34 AM
Last Post: jttolleson
Question Is there a python program for automating this invoicing workflow? PG_Archipelago 3 2,421 Feb-02-2023, 11:01 PM
Last Post: Larz60+
  Saving progress in a Python program to use later Led_Zeppelin 9 4,863 Sep-11-2022, 01:32 PM
Last Post: snippsat
  Identifying if the program I have is python and then decompiling jpnyc 7 4,024 Jun-02-2022, 10:16 PM
Last Post: jpnyc
  Rock paper scissors in python with "algorithm" Agat0 23 10,837 Mar-01-2022, 03:20 PM
Last Post: Agat0

Forum Jump:

User Panel Messages

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