Spyder无法启动:spyder:找不到命令 [英] Spyder cannot launch: spyder: command not found

查看:959
本文介绍了Spyder无法启动:spyder:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Mac上通过pip3 install spyder安装了spyder.但是,当我无法从bash启动它时,它将显示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.

我已经按照 Github页面上的说明进行操作,并且我也有它的依赖项,如安装的PyQt5.

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

是否可以在不安装Anaconda发行版的情况下安装spyder? 谢谢你.

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

推荐答案

(此处为 Spyder开发人员)

在Python 3中安装Spyder时运行的命令是spyder3,而不是spyder,但仅当Spyder与pip一起安装时运行.

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

现在,关于这个:

是否可以在不安装Anaconda发行版的情况下安装spyder?

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

我们的官方答案是:

  1. 如果您不熟悉Python或科学Python生态系统,我们强烈建议您安装并使用Anaconda.它带有Spyder及其所有依赖项,以及最重要的Python科学库(即Numpy,Pandas,Matplotlib,IPython等),都在一个易于使用的环境中提供.
  2. 我们还支持pip,但是请注意,pip安装是针对对 all Spyder依赖项有充分了解的高级用户的.
  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.

鉴于在spyder之后的终端中简单的Tab会给您spyder3,我想您不是很有经验.所以我的建议是:请考虑使用Anaconda.

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.

这篇关于Spyder无法启动:spyder:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆