1.查看当前版本号
strings /home/cyj/anaconda2/bin/../lib/libstdc++.so.6 | grep GLIBCXX
缺少3.4.21,所以装一个
2.执行
conda install libgcc
这边可能出现一个错误:
CondaIOError: IO error: Missing write permissions in: /home/cyj/anaconda2
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/home/cyj/anaconda2'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone=/home/cyj/anaconda2
问题在于 anaconda所在文件夹只有root 才有权限,而 sudo 对于conda没用,解决方案是修改文件夹权限给当前用户
执行:
sudo chown -R cyj /home/cyj/anaconda2
然后再执行一次:
conda install libgcc
得到:
3.检验
strings /home/cyj/anaconda2/bin/../lib/libstdc++.so.6 | grep GLIBCXX
得到:
成功。