Alternative for the DYLD_LIBRARY_PATH-trick since Mac OS 10.11 El Capitan with System Integrity Protection
问题 Here is what I have: Mac OS 10.11 El Capitan python 2.7.12, installed from python.org under /Library/Frameworks/Python.framework/ PyCharm 2016.2.3 vtk 7.1.0 Here is what I do: Build a python module locally. In my case, this is vtk. For a summary, see the CMake call with which I configure vtk. cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release -DVTK_WRAP_PYTHON=ON -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX="/opt/dev/versions/vtk/vtk-7.1.0-shared" -DPYTHON