运行python时Sublime link命令出错?

2024-09-30 14:15:14 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试运行python脚本时,sublime出现了link命令错误。以前很管用

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公司: 谢谢,这是因为我没有在工具中选择正确的模式->;构建系统


Tags: pyformainnotiotoneusersx86

热门问题