I could use some tips on how to setup PythonKit for local use. I installed the swift4TF toolchain, and set it as the toolchain path for the given project in CLion, using the Swift plug-in. I included the dependency for PythonKit in Package.swift:
.package(url: "https://github.com/pvieito/PythonKit.git", .branch("master")),
However, just trying to import PythonKit into main.swift yields a bewildering error message. If anyone could clue me into how to fix it, I would be grateful. The error message reads as follows:
Compiling Swift_Cpp main.swift
error: compiling for macOS 10.10, but module ‘PythonKit’ has minimum deployment target of macOS 10.13: /Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.11.xctoolchain/usr/lib/swift/macosx/PythonKit.swiftmodule/x86_64.swiftmodule
It’s a basic use case. I want to use Swift to import a .txt file with 18 2d arrays of 45 x 25 (18 toy images stacked depthwise), taken from an image-processing pipeline, and apply S4TF to fit a basic modeling framework to it, then render the original image with overlaid probabilities for each region of interest.