调用sklearn遇到dlopen: cannot load any more object with static TLS问题解决

问题描述

在运行python代码时遇到如下问题:

ImportError: dlopen: cannot load any more object with static TLS
___________________________________________________________________________
Contents of /home/user/anaconda3/envs/tf13/lib/python3.6/site-packages/sklearn/__check_build:
setup.py                  __init__.py               _check_build.cpython-36m-x86_64-linux-gnu.so
__pycache__
___________________________________________________________________________
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. 

提示dlopen: cannot load any more object with static TLS错误,并说scikit-learn遇到问题。 

解决办法:

降级python 第三方库的版本即可,比如 把sklearn版本 降级为scikit-learn 0.20.3

原文地址:https://www.cnblogs.com/huadongw/p/14584232.html