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
  kill python execution program lebossejames 0 252 Mar-16-2024, 11:16 AM
Last Post: lebossejames
  Algorithm for extracting comments from Python source code Pavel1982 6 544 Feb-28-2024, 09:52 PM
Last Post: Pavel1982
  Unexpected termination of program when using JDBC drivers in python with jaydebeapi skarface19 2 342 Feb-17-2024, 12:01 PM
Last Post: skarface19
  How do I handle escape character in parameter arguments in Python? JKR 6 1,178 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 1,221 Jul-28-2023, 08:34 AM
Last Post: jttolleson
Question Is there a python program for automating this invoicing workflow? PG_Archipelago 3 1,092 Feb-02-2023, 11:01 PM
Last Post: Larz60+
  Saving progress in a Python program to use later Led_Zeppelin 9 2,184 Sep-11-2022, 01:32 PM
Last Post: snippsat
  Identifying if the program I have is python and then decompiling jpnyc 7 2,346 Jun-02-2022, 10:16 PM
Last Post: jpnyc
  Rock paper scissors in python with "algorithm" Agat0 23 6,091 Mar-01-2022, 03:20 PM
Last Post: Agat0
  Python Program to Find the Total Sum of a Nested List vlearner 8 4,940 Jan-23-2022, 07:20 PM
Last Post: menator01

Forum Jump:

User Panel Messages

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