When entering python
on Linux shell, the welcome message is printed:
[root@localhost ~]# python
Python 2.7.5 (default, Nov 20 2015, 02:00:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
where do those lines come from? Are they determined during compilation or installation?
I have another version of python
executable and a set of libs on my system, but when I enter that python
, it also shows the same welcome message as above.
Thanks,
UPDATE:
I use absolute path to start another version of python. And just found the welcome message has the same content as sys.version and sys.platform. But if I copy the other version of python to a different Linux machine B, and still use absolute path to run it. I get
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
This welcome message is the same as machine B's python.