You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, I wanted to run a python file in the swift project for iPhone Application. I installed PythonKit from url (https://github.com/pvieito/PythonKit).
Then import PythonKit in viewcontroller and put print(Python.versionInfo) line in the viewload function.
I tried to set the environment variable in the scheme. But every time got the error "Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library."
I put below the value
PYTHON_LIBRARY = "/opt/anaconda3/envs/myenv/lib/libpython3.9.dylib"
PYTHON_LIBRARY = "/Library/Frameworks/Python.framework/Versions/3.11/Python"
unable to read from there.
Please help me out with this issue I am stuck for a lot of days.
Config:
Xcode: 14.1
Swift 5(Not SwiftUI)
The text was updated successfully, but these errors were encountered:
This sound a lot like a project configuration problem rather than a Swift bug. Asking about this in the PythonKit repo or Stack Overflow is likely to be more helpful.
Actually, I wanted to run a python file in the swift project for iPhone Application. I installed PythonKit from url (https://github.com/pvieito/PythonKit).
Then import PythonKit in viewcontroller and put print(Python.versionInfo) line in the viewload function.
I tried to set the environment variable in the scheme. But every time got the error "Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library."
I put below the value
PYTHON_LIBRARY = "/opt/anaconda3/envs/myenv/lib/libpython3.9.dylib"
PYTHON_LIBRARY = "/Library/Frameworks/Python.framework/Versions/3.11/Python"
unable to read from there.
Please help me out with this issue I am stuck for a lot of days.
Config:
Xcode: 14.1
Swift 5(Not SwiftUI)
The text was updated successfully, but these errors were encountered: