简体   繁体   English

在新的 Anaconda 安装中尝试将 Spyder 更新到版本 5.1.5 时出现许多问题

[英]Numerous issues when attempting to update Spyder to version 5.1.5 in new Anaconda install

I've run into numerous problems when attempting to update Spyder from 4.2.5 (which is what installs with the most recent Anaconda install) to 5.1.5 in Anaconda.在尝试将 Spyder 从 4.2.5(这是使用最新 Anaconda 安装安装的)更新到 Anaconda 中的 5.1.5 时,我遇到了许多问题。

The advice provided on Spyder startup during version checking:版本检查时Spyder启动时提供的建议:

conda update conda
conda update anaconda
conda install spyder=5.1.5

does NOT work.不起作用。

After some searching around, I did find a stack overflow question with an answer from a Spyder Maintainer with the following instructions:经过一番搜索后,我确实找到了一个堆栈溢出问题,其中包含来自 Spyder 维护者的答案,其中包含以下说明:

conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.1.5

This seems to actually work, but then seemed to remove some common modules/packages as well, like matplotlib.这似乎确实有效,但随后似乎也删除了一些常见的模块/包,例如 matplotlib。 Those are easy enough to reinstall (conda install matplotlib), but after that running matplotlib would cause Spyder to restart the Kernel every time, PLUS no plots were produced.这些很容易重新安装(conda install matplotlib),但是在那之后运行 matplotlib 会导致 Spyder 每次都重新启动内核,而且没有生成任何图。

A different question provided the advice to downgrade the version of freetype from 2.11.0 to 2.10.4, which seemed to resolve that issue (downgrading Matplotlib seemed to be unnecessary).另一个问题提供了将 freetype 版本从 2.11.0 降级到 2.10.4 的建议,这似乎解决了这个问题(降级 Matplotlib 似乎没有必要)。 I'm afraid of what other issues I may encounter?我害怕我可能会遇到什么其他问题? I'm attempting to teach Python to 70 or so undergraduate students, and it's very difficult to assist when upgrades break things this bad.我正在尝试向 70 名左右的本科生教授 Python,当升级破坏了如此糟糕的事情时,很难提供帮助。

Is there an easier/cleaner way to upgrade Spyder to 5.1.5 on Anaconda that I haven't come across yet?在 Anaconda 上是否有更简单/更简洁的方法将 Spyder 升级到 5.1.5,我还没有遇到过?

( Spyder maintainer here ) You said 这里是 Spyder 维护者)你说

Is there an easier/cleaner way to upgrade Spyder to 5.1.5 on Anaconda that I haven't come across yet?在 Anaconda 上是否有更简单/更简洁的方法将 Spyder 升级到 5.1.5,我还没有遇到过?

Unfortunately, there isn't.不幸的是,没有。 This update was particularly hard because we had to drop some dependencies which became unmaintained and use others instead.这次更新特别困难,因为我们不得不删除一些不再维护的依赖项并使用其他依赖项。 However, the problem with Matplotlib crashing should be solved now (ie there's no need to downgrade freetype to fix it).但是,现在应该解决 Matplotlib 崩溃的问题(即不需要降级freetype来修复它)。

I'm attempting to teach Python to 70 or so undergraduate students, and it's very difficult to assist when upgrades break things this bad.我正在尝试向 70 名左右的本科生教授 Python,当升级破坏了如此糟糕的事情时,很难提供帮助。

In that case, I strongly recommend you to use our Windows and macOS installers, which you can find here and followour instructions on how to use other Python packages that don't come with them.在这种情况下,我强烈建议您使用我们的 Windows 和 macOS 安装程序,您可以在此处找到它们并按照我们的说明操作,了解如何使用未随附的其他 Python 包。 I think that would be far more simpler for your students to follow than using Spyder directly through Anaconda.我认为这比直接通过 Anaconda 使用 Spyder 对您的学生来说要简单得多。

(Sorry to be answering my own question, figured it's better for visibility) (很抱歉回答我自己的问题,认为这对可见性更好)

So funny thing, as of 11/17/2021, I note that Anaconda's latest release now includes Spyder 5.1.5, so upgrade issues are no longer an problem if installing Anaconda fresh.有趣的是,截至 2021 年 11 月 17 日,我注意到 Anaconda 的最新版本现在包括 Spyder 5.1.5,因此如果重新安装 Anaconda,升级问题不再是问题。

spyder 4.2.5 -> 5.1.5 spyder-kernels 1.10.2 -> 2.1.3 spyder 4.2.5 -> 5.1.5 spyder 内核 1.10.2 -> 2.1.3

( https://docs.anaconda.com/anaconda/reference/release-notes/ ) https://docs.anaconda.com/anaconda/reference/release-notes/

Yay for fortuitous upgrade releases!是的,幸运的升级版本!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM