简体   繁体   English

Python 显示错误的 gcc 版本

[英]Python shows wrong gcc version

I updated gcc to v6 few weeks ago.几周前我将 gcc 更新到 v6。 Today i noticed that python2 and python3 both the interpreters were using gcc v5.今天我注意到python2和python3这两个解释器都在使用gcc v5。 Why does python interpreter show gcc v5 but I have gcc v6 installed?为什么python解释器显示gcc v5但我安装了gcc v6? I am using xubuntu 16.我正在使用 xubuntu 16。

Here is my terminal:这是我的终端: 错误的翻译!

Did you download python or build it yourself?你是下载python还是自己构建的? If you download python binaries, it's already compiled and doesn't use your gcc.如果您下载 python 二进制文件,它已经编译并且不使用您的 gcc。

If you want to compile python with gcc 6, download the cpython source from here and go wild.如果你想用 gcc 6 编译 python,从这里下载 cpython 源代码并疯狂。

On your platform, gcc-6 command is referring to GCC V6 .在您的平台上, gcc-6命令指的是GCC V6 gcc command is still referring to GCC V5 , gcc命令仍然指的是GCC V5

Note: You can check it via typing gcc --version on terminal.注意:您可以通过在终端上输入gcc --version来检查它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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