有没有办法告诉哪个编译器用于在特定的
linux机器上构建
Python安装?
我尝试在Python动态库[1]上使用ldd,但是我没有理解是否使用gcc或Intel编译器编译.
[1]
$ldd libpython2.7.so.1.0 linux-vdso.so.1 => (0x00007fff4a5ff000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ab8de8ae000) libdl.so.2 => /lib64/libdl.so.2 (0x00002ab8deac9000) libutil.so.1 => /lib64/libutil.so.1 (0x00002ab8deccd000) libm.so.6 => /lib64/libm.so.6 (0x00002ab8deed1000) libc.so.6 => /lib64/libc.so.6 (0x00002ab8df154000) /lib64/ld-linux-x86-64.so.2 (0x0000003b9a400000)
解决方法
我认为你在sys.version中有
>>> import sys >>> print(sys.version) 3.2.3 (default,Oct 19 2012,19:53:16) [GCC 4.7.2]
当您启动交互式解释器时,通常也应该告诉您:
wim@wim-zenbook:~$python3 Python 3.2.3 (default,19:53:16) [GCC 4.7.2] on linux2 Type "help","copyright","credits" or "license" for more information. >>>