文章目录
前言
在NVIDIA JETSON AGX XAVIER上使用Pycharm运行python程序
最开始(失败)python版本:python3.8 安装的sklearn库版本:scikit-learn1.3.2
最后(成功)python版本:python3.9,sklearn:scikit-learn1.4.1.post1**
一、运行python程序报错:
'sklearn.__check_build._check_build’问题
如下图所示
完整报错如下
Traceback (most recent call last):
File "/xx/python3.8/site-packages/sklearn/__check_build/__init__.py", line 48, in <module>
from ._check_build import check_build # noqa
ImportError: /xx/python3.8/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 "/xx/lstm_train_2.py", line 20, in <module>
from sklearn import preprocessing
File "/xx/python3.8/site-packages/sklearn/__init__.py", line 81, in <module>
from . import __check_build # noqa: F401
File "/xx/python3.8/site-packages/sklearn/__check_build/__init__.py", line 50,