I'm trying to follow this seemingly simple tutorial on how to make an executable using Cython.
The python file I'm using contains the following:
#cython: language_level=3
print("hello world")
I compiled this file into a .c file by running the following command:
cython --embed test.pyx
I compiled the program with these arguments.
gcc -Os -I /usr/local/Caskroom/miniconda/base/envs/cython_test/include/python3.8 -L /usr/local/Caskroom/miniconda/base/envs/cython_test/lib -lpython3.8 test.c -o test
However, after compiling the program, and attempting to run it, I receive this error.
dyld: Library not loaded: @rpath/libpython3.8.dylib
Referenced from: ./test
Reason: image not found
Abort trap: 6
I was able to successfully compile and run the executable using a non-conda python environment of python 3.7, so that leads me to believe that the library files that came with my conda environment are having an effect here.