安装sklearn后:import出现以下错误:
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by anaconda3/lib/python3.6/site-packages/scipy/sparse/_sparsetools.cpython-36m-x86_64-linux-gnu.so)
原因:gcc动态库版本过老,解决方法:
vi ~/.bashrc
在文件中添加如下代码
LD_LIBRARY_PATH=/home/hd/anaconda3/lib:$LD_LIBRARY_PATH (将anaconda3库文件路径添加到系统的库文件路径中) export LD_LIBRARY_PATH
$ source ~/.bash_profile