在Spyder中切换到Python 3.x.

ali*_*boy 22 python spyder

默认情况下,Spyder使用Python 2.7.2,我的问题是:有没有办法设置Spyder以便它自动使用Python 3.x?谢谢!

小智 18

自2013年5月底以来,Spyder的v2.3.0dev1版适用于Python 3.3及更高版本.
它处于可用状态,但存在一些小问题.希望他们很快就会得到解决.

  • 这在Ubuntu 13.10上对我有用.从他们的[下载页面](https://bitbucket.org/spyder-ide/spyderlib/downloads),我安装了v2.3.0beta3.zip(这是2014年2月8日的最新版本.我解压缩它,打开了文件夹并运行`python3 setup.py install`.在运行Spyder之前,我还必须执行`sudo apt-get install python3-pyqt4`. (2认同)

Gar*_*ett 14

要使用Spyder for Python 3,您只需要v2.3.0或更高版本.

Ubuntu 12.10及更高版本

你可以通过使用来获得这个pip3.

sudo apt-get install python3-pip python3-pyqt4
sudo pip3 install spyder
Run Code Online (Sandbox Code Playgroud)

Ubuntu 12.04

Ubuntu 12.04 python3-pip在存储库中没有,但你可以得到它setuptools,

sudo apt-get install python3-pyqt4 python3-setuptools
sudo easy_install3 pip
sudo pip3 install spyder
Run Code Online (Sandbox Code Playgroud)

然后你可以从启动器打开Spyder(登出后进入)或者通过输入从终端打开spyder3.


mar*_*rts 7

Ubuntu 16.04

加勒特的解决方案对我不起作用.已安装Pip,但运行"install spyder"命令不会使用Python3.5安装spyder.我卸载了spyder.

有用的只是:

sudo apt-get install spyder3
Run Code Online (Sandbox Code Playgroud)

这也将自动安装任何Python 3.x依赖项.


Blc*_*ght 4

在提出这个问题时,Spyder 不支持 Python 3(这个答案是这么说的,给出了当时不完整的移植工作的一些细节)。

但现在情况不再是这样了!最近版本的 Spyder 应该可以与 Python 3 配合使用。查看其他答案,获取一些获取它的链接(尽管此时它们本身可能已经过时)。