我想在Swfit中调用Python,所以我下载了一个PythonKit并构建它,但是收到以下错误消息 . 如果我添加了PythonKit依赖项,它会显示“Segmentation fault 11” . 有谁知道如何解决它?或者任何其他方式可以在Swift中调用Python?谢谢!
swift run编译Swift模块'PythonKit'(4个来源)/PythonKit-master/PythonKit/Python.swift:82:2:错误:未知属性'dynamicCallable'@ dynamicCallable ^ /PythonKit-master/PythonKit/Python.swift:82 :2:错误:未知属性'dynamicCallable'@dynamicCallable ^ /PythonKit-master/PythonKit/Python.swift:128:26:警告:不推荐使用'CustomPlaygroundQuickLookable':将在未来的Swift版本中删除CustomPlaygroundQuickLookable . 要自定义类型在游乐场中的显示方式,请改用CustomPlaygroundDisplayConvertible . 扩展PythonObject:CustomPlaygroundQuickLookable {
如果添加.package(网址:“https://github.com/pvieito/PythonKit.git”,. . branch(“master”))
它在构建时显示“Segmentation fault 11” .