将 Anaconda 中的 Spyder 更新至 5.2.2

发布于 2025-01-18 02:06:31 字数 986 浏览 0 评论 0原文

我觉得我快要疯了,因为我在任何地方都找不到任何相关信息...是否有办法将 Anaconda Navigator 中的 Spyder 更新到版本 5.2.2?导航器显示 Spyder 的最高版本是 5.1.5:

This shown the versions available for Spyder in Anaconda

我特别想要更新到 5.2.2,因为 5.1.5 中的调试器已损坏,似乎修复它的唯一正确方法是更新到 5.2.2。请参阅 指向 stackoverflow 的链接,说明需要更新到 5.2.2修复调试器

我已经尝试过:

conda install spyder==5.2.2

但它只是说“PackagesNotFoundError:当前频道无法提供以下软件包:-spyder==5.2.2”

我也尝试过:

pip install spyder==5.2.2

但出现错误“错误:由于 OSError 无法安装软件包:[WinError 5] 访问被拒绝:'C:\Users\##\Anaconda3\envs\spyder\Lib\site-packages \PyQt5\QtCore.pyd' 考虑使用 --user 选项或检查权限。”

同时尝试,

pip install spyder==5.2.2 --user

该命令似乎确实运行完成而没有错误,但 IDE 似乎没有更新,因为它仍然显示为 5.1 .5 并且它还说了一些关于缺少依赖项的警告(并且调试器仍然无法工作)

有什么建议吗?

I feel like I'm going absolutely insane as I can't find any information on this anywhere... Is there anyway to update Spyder in Anaconda Navigator to version 5.2.2? The navigator shows that the highest possible version for Spyder is 5.1.5:

This shows the versions available for Spyder in Anaconda

I particularly want to update to 5.2.2 because the debugger in 5.1.5 is broken, and it seems the only correct way to fix it is to update to 5.2.2. See Link to stackoverflow stating that one needs to update to 5.2.2 to fix the debugger

I've tried:

conda install spyder==5.2.2

but it just says "PackagesNotFoundError: The following packages are not available from current channels: - spyder==5.2.2"

I've also tried:

pip install spyder==5.2.2

But get the error "ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Users\##\Anaconda3\envs\spyder\Lib\site-packages\PyQt5\QtCore.pyd'
Consider using the --user option or check the permissions."

Also trying,

pip install spyder==5.2.2 --user

The command does seem to run to completion without error, but the IDE doesn't seem to have updated as it still says it's 5.1.5 and it also says some things about a warning of missing dependencies (and the debugger still doesn't work).

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深海少女心 2025-01-25 02:06:31

Spyder 5.2.2 目前只能通过 conda-forge 渠道获取。要安装它,我建议您仅使用 conda-forge 包创建一个新环境。您可以通过从 Anaconda 提示符运行如下命令来完成此操作:

conda create -n spyder-env -c conda-forge python=3.9 spyder=5.2.2

要检查不同渠道中可用的最新版本,您可以转到 https://anaconda.org/search?q=spyder

编辑: 目前,Spyder 5.2.2 可从默认的 anaconda 渠道获取。不过,目前最新的 Spyder 版本是 5.3.2。为了以防万一,使用 Python 3.9 在新环境中安装最新 Spyder 版本的 conda 命令如下所示:

conda create -n spyder-env -c conda-forge python=3.9 spyder

Spyder 5.2.2 is only available for the moment through the conda-forge channel. To install it I recommend you to create a new env using only conda-forge packages. You can do that by running from an Anaconda prompt something like the following:

conda create -n spyder-env -c conda-forge python=3.9 spyder=5.2.2

To check what is the latest version available in the different channels you can go to https://anaconda.org/search?q=spyder

Edit: Currently Spyder 5.2.2 is available from the default anaconda channel. However, the latest Spyder release currently is 5.3.2. Just in case, the conda command to get the latest Spyder version installed in a new env with Python 3.9 looks something like:

conda create -n spyder-env -c conda-forge python=3.9 spyder
春风十里 2025-01-25 02:06:31

我已在命令提示符窗口中运行以下命令。它帮助

conda删除spyder

conda删除python-language-server

conda更新anaconda

conda安装spyder = 5.2.2

I have run the following in command prompt window. It has helped

conda remove spyder

conda remove python-language-server

conda update anaconda

conda install spyder=5.2.2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文