运行python时升华链接命令错误?

时间:2019-07-31 20:15:04

标签: python sublimetext3 sublimetext2 sublime-build

当我尝试运行python脚本时,出现了升华链接命令错误。过去工作正常。

ld: warning: ignoring file /Users/Documents/sideproj/IoT/one_hot_encoding.py, file was built for unsupported file format ( 0x0A 0x69 0x6D 0x70 0x6F 0x72 0x74 0x20 0x74 0x65 0x6E 0x73 0x6F 0x72 0x66 0x6C ) which is not the architecture being linked (x86_64): /Users/Documents/sideproj/IoT/one_hot_encoding.py
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[Finished in 0.1s with exit code 1]

EIDT: 谢谢,因为我没有在工具->构建系统中选择正确的模式。

0 个答案:

没有答案