Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
on a system w/o python3
#15
(Nov-08-2017, 01:42 PM)metulburr Wrote: I could only assume all other distros would follow suit.
no, they do not.

i was under the impression the link name "python" referring to "python2" was installed by the python source install, and thus, was a standard.  if not, then i can change the link myself on systems with python3 and leave it alone on systems without python3 ... so scripts with #!/usr/bin/env python will run the best python on that system.

my Ubuntu 16.04 LTS system has both python2 and python3 but the name python refers to python2:
Output:
lt1/forums /home/forums 1> (for p in $(echo "$PATH"|tr : ' ');do ls -dl $p/python*;done) ls: cannot access '/home/forums/.bin/python*': No such file or directory ls: cannot access '/home/forums/.cmd/python*': No such file or directory ls: cannot access '/home/forums/bin/python*': No such file or directory ls: cannot access '/home/forums/cmd/python*': No such file or directory ls: cannot access '/usr/local/cmd/python*': No such file or directory ls: cannot access '/usr/local/bin/python*': No such file or directory lrwxrwxrwx 1 root root       9 May  2  2016 /usr/bin/python -> python2.7 lrwxrwxrwx 1 root root      16 Dec  9  2015 /usr/bin/python-config -> python2.7-config lrwxrwxrwx 1 root root      13 Dec  9  2015 /usr/bin/python-dbg -> python2.7-dbg lrwxrwxrwx 1 root root      20 Dec  9  2015 /usr/bin/python-dbg-config -> python2.7-dbg-config lrwxrwxrwx 1 root root       9 May  2  2016 /usr/bin/python2 -> python2.7 lrwxrwxrwx 1 root root      16 Dec  9  2015 /usr/bin/python2-config -> python2.7-config lrwxrwxrwx 1 root root      13 Dec  9  2015 /usr/bin/python2-dbg -> python2.7-dbg lrwxrwxrwx 1 root root      20 Dec  9  2015 /usr/bin/python2-dbg-config -> python2.7-dbg-config -rwxr-xr-x 1 root root     151 Nov 23  2015 /usr/bin/python2-pbr -rwxr-xr-x 1 root root 3546104 Nov 19  2016 /usr/bin/python2.7 lrwxrwxrwx 1 root root      33 Nov 19  2016 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config -rwxr-xr-x 1 root root 6414496 Nov 19  2016 /usr/bin/python2.7-dbg lrwxrwxrwx 1 root root      37 Nov 19  2016 /usr/bin/python2.7-dbg-config -> x86_64-linux-gnu-python2.7-dbg-config lrwxrwxrwx 1 root root       9 May  2  2016 /usr/bin/python3 -> python3.5 lrwxrwxrwx 1 root root      16 Mar 23  2016 /usr/bin/python3-config -> python3.5-config -rwxr-xr-x 2 root root 4456240 Sep 18 11:59 /usr/bin/python3.5 lrwxrwxrwx 1 root root      33 Sep 18 11:59 /usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-config -rwxr-xr-x 2 root root 4456240 Sep 18 11:59 /usr/bin/python3.5m lrwxrwxrwx 1 root root      34 Sep 18 11:59 /usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-config lrwxrwxrwx 1 root root      10 May  2  2016 /usr/bin/python3m -> python3.5m lrwxrwxrwx 1 root root      17 Mar 23  2016 /usr/bin/python3m-config -> python3.5m-config ls: cannot access '/bin/python*': No such file or directory ls: cannot access '/usr/X11R6/bin/python*': No such file or directory lt1/forums /home/forums 2>
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