Windows 10 操作系统
Windows10 安装 64 位 Python3.10.4 后,打开命令行,运行
pip3 install spyder -U
将会安装最新版的 Spyder,当前(2022-06-11)是 5.3.1 版。
这种方式安装的该版本的 Spyder 在运行时,主界面可以显示,但右下角的窗口一直显示
Connecting to kernel ...
据
https://github.com/spyder-ide/spyder/issues/18174
将 jupyter-client 降级为 7.3.1 就可以了,具体指令为
pip3 install jupyter-client==7.3.1
已测可行。
Ubuntu 22.04 LTS
我的安装过程:
sudo apt install spyder3
sudo apt install python3-spyder
sudo apt install python3-wheel
sudo apt install python3-pip
pip3 install spyder -U
经过上述过程,在系统路径下,会安装spyder3,在 ~/.local/bin 下当前(2022-06-11)会安装 Spyder5.3.1。
编辑 ~/.bashrc,在最后增加下面一行,将 ~/.local/bin 添加到系统路径:
export PATH=/home/[user name]/.local/bin:$PATH
保存后,运行下面一行指令,无需重新启动,立即生效:
source ~/.bashrc
注意,上面的 [user name] 要用你的登录用户名替代。
运行 Spyder 出现的问题同 Windows 10 下,解决方法也相同,不赘述。