问题
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.
回答1:
(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:
- 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.
- We also support
pip
, but please be aware thatpip
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.
回答2:
If it is a Mac application installed in /Applications, you may want to try the open
command:
open -a Spyder
来源:https://stackoverflow.com/questions/46875934/spyder-cannot-launch-spyder-command-not-found