python - 运行python时Sublime链接命令错误?
问题描述
当我尝试运行 python 脚本时,我遇到了 sublime 的链接命令错误。它曾经工作得很好。
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:谢谢,因为我没有在工具->构建系统中选择正确的模式。
解决方案
推荐阅读
- javascript - 如何从 ASP.NET 将值传递给外部 Javascript 脚本
- python - 绘制 n 个二维数组的平均值
- flutter - 分享更新后flutter显示错误的偏好包
- python - python kivy Boxlayout没有组织它的孩子
- r - 如何使用超赋值“<<-”通过记忆递归函数清除“备忘录”或更好地理解 R 中的范围
- java - 从java类获取项目目录
- javascript - 何时需要在 Javascript 中的函数外部声明变量?
- sql - SQL Hive - MD5 哈希
- javascript - 使用 keyup.arrowDown 和 keyup.arrowUp 导航列表
- api - 资源名称/创建 [POST] 与资源名称 [POST] 之间的 API 端点 URL 差异