Chauncey
Chauncey

Reputation: 83

Spyder cannot launch: spyder: command not found

I have installed spyder by pip3 install spyder on mac. However, when I cannot launch it from bash and it would show spyder: command not found.

I have follow the instructions on its Github page, and I have also have its dependencies like PyQt5 installed.

Is there a way to install spyder without installing the Anaconda distribution? Thank you.

Upvotes: 6

Views: 11648

Answers (2)

Carlos Cordoba
Carlos Cordoba

Reputation: 34136

(Spyder developer here)

The command to run Spyder when it's installed in Python 3 is spyder3, not spyder, but only when Spyder is installed with pip.


Now, about this:

Is there a way to install spyder without installing the Anaconda distribution?

Our official answer is:

  1. If you are new to Python or the Scientific Python ecosystem, we strongly recommend you to install and use Anaconda. It comes with Spyder and all its dependencies, along with the most important Python scientific libraries (i.e. Numpy, Pandas, Matplotlib, IPython, etc) in a single, easy to use environment.
  2. We also support pip, but please be aware that pip installations are for advanced users with good knowledge of all Spyder dependencies.

Given that a simple Tab in a terminal after spyder would have given you spyder3, I'd say you're not very experienced. So my suggestion is: please consider using Anaconda.

Upvotes: 6

rje
rje

Reputation: 6418

If it is a Mac application installed in /Applications, you may want to try the open command:

open -a Spyder

Upvotes: 0

Related Questions