Spyder cannot launch: spyder: command not found

心已入冬 提交于 2020-05-29 07:11:38

问题


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:

  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.




回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!