Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
on a system w/o python3
#1
lots of my scripts work fine on python3.  a few even work better when run on python3.  only a few others need python2 and i hope to eventually recode those to get them working on python3.  about half now have a #! (hash-bang) to run python3.  but a problem i have is that the Amazon Linux distro i use for instances in the AWS cloud (Amazon Web Services) only has python2.  python3 won't install right (it is in the repository) due to conflicts.  and the system is very dependent on python so i can't uninstall python2 and reinstall python3.  i could run Ubuntu Linux like i do on my laptop but the Ubuntu Linux server edition available on AWS does not work with IPv6.  so i am stuck with Amazon Linux and stuck with python2.  that means half my scripts won't even run.  so i am trying to figure out a way to run them on python3 where that is available but have them run on python2 where that is the only version available.

before i follow up with my (perhaps silly) ideas, i want to find out if there are any solutions to this kind of problem that already exist.  i don't know what kind of search terms i could use on google for this.

out of curiosity, i'd like to know how Microsoft Windows deals with scripts using different interpreters.  does it support has-bang (#!) or have something equivalent?  can it even do a mix of python2 and python3?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
on a system w/o python3 - by Skaperen - Nov-07-2017, 01:29 AM
RE: on a system w/o python3 - by metulburr - Nov-07-2017, 01:39 AM
RE: on a system w/o python3 - by Skaperen - Nov-07-2017, 02:04 AM
RE: on a system w/o python3 - by sparkz_alot - Nov-07-2017, 02:08 AM
RE: on a system w/o python3 - by Skaperen - Nov-07-2017, 02:23 AM
RE: on a system w/o python3 - by wavic - Nov-07-2017, 10:41 AM
RE: on a system w/o python3 - by Larz60+ - Nov-07-2017, 04:00 PM
RE: on a system w/o python3 - by Skaperen - Nov-08-2017, 01:27 AM
RE: on a system w/o python3 - by snippsat - Nov-07-2017, 04:29 PM
RE: on a system w/o python3 - by metulburr - Nov-07-2017, 09:19 PM
RE: on a system w/o python3 - by metulburr - Nov-08-2017, 02:14 AM
RE: on a system w/o python3 - by snippsat - Nov-08-2017, 02:51 AM
RE: on a system w/o python3 - by Skaperen - Nov-08-2017, 03:30 AM
RE: on a system w/o python3 - by metulburr - Nov-08-2017, 01:42 PM
RE: on a system w/o python3 - by Skaperen - Nov-08-2017, 11:26 PM
RE: on a system w/o python3 - by metulburr - Nov-09-2017, 12:16 AM
RE: on a system w/o python3 - by Skaperen - Nov-10-2017, 07:28 AM
RE: on a system w/o python3 - by wavic - Nov-09-2017, 12:24 AM
RE: on a system w/o python3 - by metulburr - Nov-10-2017, 10:27 AM
RE: on a system w/o python3 - by wavic - Nov-10-2017, 02:34 PM
RE: on a system w/o python3 - by snippsat - Nov-10-2017, 03:32 PM
RE: on a system w/o python3 - by Skaperen - Nov-11-2017, 05:24 AM
RE: on a system w/o python3 - by snippsat - Nov-11-2017, 09:02 AM
RE: on a system w/o python3 - by Skaperen - Nov-12-2017, 04:28 AM

Forum Jump:

User Panel Messages

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