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