Tess
Tess

Reputation: 45

Application launch error in Anaconda Navigator - Application spyder launch may have produced errors

I've followed these steps in order to update Spyder:

conda remove spyder conda remove python-language-server conda update anaconda conda install spyder=5.1.5

As advised in post Cannot update spyder=5.1.5 on new anaconda install

However, I cannot open Spyder anymore form my anaconda navigator...

It gives me the error: Application spyder launch may have produced error /Users/me/opt/anaconda3/bin/pythonw: line 3: /Users/me/opt/anaconda3/python.app/Contents/MacOS/python: No such file or directory

Does anyone know what the issue might be?

Upvotes: 2

Views: 6829

Answers (1)

Hoerbii3
Hoerbii3

Reputation: 50

i ran into the same problem. I solved it now, here is what i have done.
Steps to fix it:

  • open your terminal
  • navigate to /opt/anaconda3/bin
  • type nano pythonw
  • the last line of the file should read /opt/anaconda3/python.app/Contents/MacOS/python "$@"
  • this line should be /opt/anaconda3/python.app/pythonapp/Contents/MacOS/python "$@" (the pythonapp part is missing)
  • safe and close
  • it should work now

Explanation:
There is a file named python, but in a different path (/opt/anaconda3/python.app/pythonapp/Contents/MacOS/python). So I guess, that the internal path is set wrong or somebody forgot to change it. That means, that as soon as you hit the "launch" button, the navigator is looking at the wrong place. We either have to adjust that path manually or wait for a solution from the development team.
Hope i could help

Upvotes: 2

Related Questions