rk3399 error when installing numpy -RuntimeError: Running cythonize failed

created at 01-27-2022 views: 36


When running the following install command:

pip3 install numpy

RuntimeError: Running cythonize failed!

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-j1mbj8zb/numpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=        f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))"         install --record /tmp/pip-26dm0w_y-record/install-record.txt --single-version-ex        ternally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pi        p-build-j1mbj8zb/numpy/


1 The first solution in the online post: (I didn't try it)

sudo su
your password
pip install statsmodels

2 After carefully reading the error reminder, I found that the cython library was missing and the error was reported. Just install it:

pip3 install cython
created at:01-27-2022
edited at: 01-27-2022: