Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/sklearn/__check_build/__init__.py", line 48, in <module>
from ._check_build import check_build # noqa
ImportError: /home/pi/.local/lib/python3.7/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/pi/9B5A-AE1B/classiPi.py", line 8, in <module>
from sklearn.preprocessing import StandardScaler
File "/home/pi/.local/lib/python3.7/site-packages/sklearn/__init__.py", line 81, in <module>
from . import __check_build # noqa: F401
File "/home/pi/.local/lib/python3.7/site-packages/sklearn/__check_build/__init__.py", line 50, in <module>
raise_build_error(e)
File "/home/pi/.local/lib/python3.7/site-packages/sklearn/__check_build/__init__.py", line 43, in raise_build_error
% (e, local_dir, "".join(dir_content).strip(), msg)
ImportError: /home/pi/.local/lib/python3.7/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block
___________________________________________________________________________
Contents of /home/pi/.local/lib/python3.7/site-packages/sklearn/__check_build:
__init__.py __pycache__ _check_build.cpython-37m-aarch64-linux-gnu.so
setup.py
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.
If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.
If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.
>>>