linux运行spyder报错:段错误 (核心已转储)和ERROR conda.core.link:_execute(502)

linux运行spyder出错:段错误 (核心已转储)和错误ERROR conda.core.link:_execute(502)

记录改错的点滴。

linux安装anaconda后运行spyder,在anaconda2/bin下输入

./spyder

报错:段错误 (核心已转储)

查到一位大佬已解决:
https://blog.csdn.net/c_air_c/article/details/81086510
具体是输入如下代码

conda install pyopengl

没想到又报错了:
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed

ERROR conda.core.link:_execute(502): An error occurred while uninstalling package ‘defaults::conda-4.5.4-py27_0’.
OSError(13, ‘Permission denied’)
Attempting to roll back.

Rolling back transaction: done

OSError(13, ‘Permission denied’)

然后又查到另一位大佬的回答:https://stackoverflow.com/questions/49181799/conda-update-conda-permission-error
输入如下代码:

sudo chown -R username:username /home/username/anaconda2

把username改掉,例如我自己运行就是

sudo chown -R jxc:jxc /home/jxc/anaconda2

运行完这一条代码然后再运行

conda install pyopengl
./spyder

应该就可以解决了。

参考:
https://blog.csdn.net/c_air_c/article/details/81086510
https://stackoverflow.com/questions/49181799/conda-update-conda-permission-error

你可能感兴趣的:(linux,linux,anaconda,spyder)