码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2021-03-29 12:08:15      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:bee   题解   __init__   please   ror   第三方   lease   anaconda   代码   

 

问题描述

在运行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

 

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

标签:bee   题解   __init__   please   ror   第三方   lease   anaconda   代码   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!