调用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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM