简体   繁体   中英

Python shows wrong gcc version

I updated gcc to v6 few weeks ago. Today i noticed that python2 and python3 both the interpreters were using gcc v5. Why does python interpreter show gcc v5 but I have gcc v6 installed? I am using xubuntu 16.

Here is my terminal: 错误的翻译!

Did you download python or build it yourself? If you download python binaries, it's already compiled and doesn't use your gcc.

If you want to compile python with gcc 6, download the cpython source from here and go wild.

On your platform, gcc-6 command is referring to GCC V6 . gcc command is still referring to GCC V5 ,

Note: You can check it via typing gcc --version on terminal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM