将 Anaconda 中的 Spyder 更新至 5.2.2
我觉得我快要疯了,因为我在任何地方都找不到任何相关信息...是否有办法将 Anaconda Navigator 中的 Spyder 更新到版本 5.2.2?导航器显示 Spyder 的最高版本是 5.1.5:
我特别想要更新到 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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Spyder 5.2.2 目前只能通过 conda-forge 渠道获取。要安装它,我建议您仅使用 conda-forge 包创建一个新环境。您可以通过从 Anaconda 提示符运行如下命令来完成此操作:
要检查不同渠道中可用的最新版本,您可以转到 https://anaconda.org/search?q=spyder
编辑: 目前,Spyder 5.2.2 可从默认的 anaconda 渠道获取。不过,目前最新的 Spyder 版本是 5.3.2。为了以防万一,使用 Python 3.9 在新环境中安装最新 Spyder 版本的 conda 命令如下所示:
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:
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删除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