Install Numpy in Termux

0
451
install numpy in termux.jpg
install numpy in termux.jpg

I wanted to install the Python module Numpy in the Termux console. However, I get an error message.

In the Termux console I wanted the Python module Numpy with the command pipenv install numpy to install. However, this fails with the following error message: SystemError: One of the required function to build numpy is not available (the list is ['sin', 'cos', 'tan', 'sinh', 'cosh', 'tanh', 'fabs', 'floor', 'ceil', 'sqrt', 'log10', 'log', 'exp', 'asin', 'acos', 'atan', 'fmod', 'modf', 'frexp', 'ldexp']) Why are there no functions?

 

The error occurs because the installation routine in Termux does not link against libm. But that can be fixed by setting the environment variable MATHLIB sets by hand. You can do this by simply writing them in front of the installation command:

bash MATHLIB="m" pipenv install numpy

SEE ALSO  Hide WhatsApp notifications on Android and iOS so that no one sees what you type