Import conda error traceback upon opening terminal

前端 未结 4 941

The below lines of code show up every time I open my terminal.

Traceback (most recent call last):
  File \"\", line 3, in 
ImportE         


        
4条回答
  •  醉梦人生
    2021-01-13 22:37

    Having the same issue. For me a temporary fix was commenting out the eval and its else if loop in bashrc.

    There is a thread on this issue on the github of conda: https://github.com/conda/conda/issues/9505

    edit: It was an error in 4.8.0 anaconda. In /etc/bash_completion.d/conda python was called without adding the path towards the anaconda python, with as a result that it opened python 2.7 and then tried to import conda. It has been fixed by the most recent update, so running conda update conda should fix the issue!

提交回复
热议问题