Bug – PythonKit/PythonLibrary.swift:59: Fatal error: ‘try!’ expression unexpectedly raised an error: Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library
I tried to do everything I read online:
-
Disabled Hardened Runtime and App Sandbox in Signings and Capabilities. Also, created an entitlements file and set App Sandbox to ‘No’ there as well.
-
Added PYTHON_LIBRARY as an environment variable with a value set to where I have my python library.
-
Set PYTHON_LOADER_LOGGING = TRUE
But it doesn’t seem to work. Anyone know how to fix this?
Yanav Lall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.