setenv PATH /opt/Python/Python-3.4.1/bin:"$PATH"
Try something like
cd johanneskoester-peanut-fe2df128044f
python3 setup.py install --user Traceback (most recent call last): File "setup.py", line 30, inpeanut needs the C interface for python.from Cython.Build import cythonize ImportError: No module named 'Cython'
Be aware that --user
creates a pile of junk hidden in
your user root directory ~/.local
When trying to install cython you may get errors, such as:
src/wrapper/wrap_cl.hpp:28:19: fatal error: CL/cl.h: No such file or directory #include <CL/cl.h> ld: cannot find -lzlib ld: cannot find -lvirtodbc ld: warning: cannot find entry symbol _start; not setting start address ld: cannot find -lOpenCLwhich may be overcome by defining unix environment variables before attempting to install Cython-0.23.1
gunzip -c Cython-0.23.1.tar.gz | tar xvf - setenv PYTHONPATH ~/peanut/Cython-0.23.1/ setenv CL_INC_DIR /usr/local/cuda/include setenv CL_LIB_DIR /usr/local/cuda/lib setenv LDFLAGS "-L/usr/lib64/nvidia" python3 setup.py install --user
The ld --verbose
option, eg:
ld -lz --verbose > ~/t ld -L/usr/lib64/nvidia/ -lOpenCL --verbosecan be useful, especially if piped into a temporary file.