Python shows wrong gcc version

只愿长相守 提交于 2019-12-13 22:43:59

问题


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:


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/49057646/python-shows-wrong-gcc-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!