Results 1 to 3 of 3

Thread: Pyhon 3.6 shows GCC 5.4 not 7.3 on Ubuntu 18.04.

  1. #1
    Join Date
    May 2011
    Beans
    17

    Pyhon 3.6 shows GCC 5.4 not 7.3 on Ubuntu 18.04.

    Hi,

    Just upgraded to Ubuntu 18.04 and checked out the Python versions installed by default.

    When I run Python, version 2.7 is executed and I see [GCC 7.3.0] on linux2.

    However when I run python3 I get [GCC 5.4.0 20160609] on linux.

    Why is Python 3.6 not picking up GCC 7.3?

    How do I fix this problem?

    Thanks for any help.

  2. #2
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Pyhon 3.6 shows GCC 5.4 not 7.3 on Ubuntu 18.04.

    Here I have
    Code:
    $ python3
    Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
    [GCC 7.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>>

    You said you "upgraded", probably you have some left over configurations. Check your .profile and .bashrc to start.

    Edited: Here in a clean install of 18.04 gcc5.4 is not even installed.
    Last edited by monkeybrain20122; September 8th, 2018 at 05:03 PM.

  3. #3
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Pyhon 3.6 shows GCC 5.4 not 7.3 on Ubuntu 18.04.

    Python doesn't "pick up" gcc - AFAIK the message is telling what version of gcc it (the python binary) was compiled with

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •