简体   繁体   English

如何在 anaconda 上更新 spyder

[英]how to update spyder on anaconda

I have Anaconda installed (Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] on win32) and I am using Spyder 2.3.8我安装了 Anaconda(Python 2.7.11 |Anaconda 自定义(64 位)|(默认,2016 年 2 月 16 日,09:58:36)[MSC v.1500 64 位 (AMD64)] 在 win32 上)并且我正在使用 Spyder 2.3.8

Would like to update Spyder to the latest version, so I went through the commands:想将 Spyder 更新到最新版本,所以我执行了以下命令:

conda update conda
conda update anaconda
conda update spyder

They all ran without errors, but the spyder version didn't change - this is command I'm using to launch:它们都运行无误,但 spyder 版本没有改变——这是我用来启动的命令:

C:\Anaconda2\pythonw.exe C:\Anaconda2\cwp.py C:\Anaconda2 "C:/Anaconda2/pythonw.exe" "C:/Anaconda2/Scripts/spyder-script.py" --new-instance C:\Anaconda2\pythonw.exe C:\Anaconda2\cwp.py C:\Anaconda2 "C:/Anaconda2/pythonw.exe" "C:/Anaconda2/Scripts/spyder-script.py" --新实例

Am I missing something?我错过了什么吗?

To expand on juanpa.arrivillaga 's comment:扩展juanpa.arrivillaga的评论:

If you want to update Spyder in the root environment, then conda update spyder works for me.如果您想在根环境中更新 Spyder,那么conda update spyder适合我。

If you want to update Spyder for a virtual environment you have created (eg, for a different version of Python), then conda update -n $ENV_NAME spyder where $ENV_NAME is your environment name.如果您想为您创建的虚拟环境更新 Spyder(例如,对于不同版本的 Python),那么conda update -n $ENV_NAME spyder其中$ENV_NAME是您的环境名称。

EDIT: In case conda update spyder isn't working, this post indicates you might need to run conda update anaconda before updating spyder.编辑:如果conda update spyder不起作用, 这篇文章表明您可能需要在更新 spyder 之前运行conda update anaconda Also note that you can specify an exact spyder version if you want.另请注意,您可以根据需要指定确切的 spyder 版本。

进入Anaconda Naviagator,找到spyder,点击spyder app右上角的设置,点击更新选项卡

I see that you used pip to update.我看到您使用 pip 进行更新。 This is strongly discouraged (at least in Spyder 3).强烈建议不要这样做(至少在 Spyder 3 中)。 The Spyder update notices I receive have always included the following:我收到的 Spyder 更新通知始终包括以下内容:

"IMPORTANT NOTE: It seems that you are using Spyder with Anaconda/Minconda. Please don't use pip to update it as that will probably break your installation. Instead please wait until new conda packages are available and use conda to perform the update." “重要提示:您似乎正在将 Spyder 与 Anaconda/Minconda 一起使用。请不要使用 pip 更新它,因为这可能会破坏您的安装。而是请等到新的 conda 包可用并使用 conda 执行更新。 "

Use this conda install spyder=4.0.0 This will not mess up your anaconda dependencies.使用这个conda install spyder=4.0.0这不会弄乱你的 anaconda 依赖项。 https://github.com/spyder-ide/spyder/releases https://github.com/spyder-ide/spyder/releases

Simply select 'Update Application' after clicking on the settings symbol(top right corner) for Spyder in the Anaconda Navigator console.在 Anaconda Navigator 控制台中单击 Spyder 的设置符号(右上角)后,只需选择“更新应用程序”即可。 In my case I just updated it so it's in disabled state.就我而言,我刚刚更新了它,所以它处于禁用状态。

在此处输入图像描述

make sure you in your base directory.确保你在你的基本目录中。
then conda install spyder will work.然后conda install spyder将工作。
Do it like this: conda install spyder=new_version_number .这样做: conda install spyder=new_version_number
new_version_number should be in digits. new_version_number应该是数字。

use this command使用这个命令

conda install spyder=5.0.1

this will install the new version or tell you the error这将安装新版本或告诉你错误

PackagesNotFoundError: The following packages are not available from current channels PackagesNotFoundError:当前频道不提供以下软件包

How to solve the error如何解决错误
1- update your anaconda 1-更新你的蟒蛇

conda update anaconda

2- go to anaconda then spyder 2- 去 anaconda 然后 spyder

在此处输入图像描述

or use this command或使用此命令

conda install spyder=5.0.0

One way to avoid errors during installing or updating packages is to run the Anaconda prompt as Administrator.在安装或更新软件包期间避免错误的一种方法是以管理员身份运行 Anaconda 提示符。 Hope it helps!希望能帮助到你!

You can easily install update version if you use Anaconda by closing Spyder and then running the following command in a system terminal (Anaconda Prompt on Windows, xterm on Linux or Terminal.app on macOS):如果您使用 Anaconda,您可以通过关闭 Spyder 然后在系统终端(Windows 上的 Anaconda Prompt、Linux 上的 xterm 或 macOS 上的 Terminal.app)中运行以下命令来轻松安装更新版本:

conda install spyder= Your desire version

(For example, Version is 3.1) (例如,版本为 3.1)

conda install spyder=3.1

Or you can use pip with this command in a system terminal (cmd.exe on Windows, xterm on Linux or Terminal.app on macOS):或者您可以在系统终端(Windows 上的 cmd.exe、Linux 上的 xterm 或 macOS 上的 Terminal.app)中使用带有此命令的 pip:

pip install --pre -U spyder

Note: Do not use this command if you are using Anaconda because it could break your installation.注意:如果您使用 Anaconda,请不要使用此命令,因为它可能会破坏您的安装。

Using pip directly:直接使用 pip:

WARNING: This will break your Anaconda Installation as described by Spyder maintainer in the comments below;警告:这将破坏您的 Anaconda 安装,如 Spyder 维护者在下面的评论中所述; you can try this solution only if the solution mentioned above that use Conda do not work仅当上述使用 Conda 的解决方案不起作用时,您才可以尝试此解决方案

pip install --upgrade spyder pip install --upgrade spyder

You might get an error once launching the new Spyder "nbconvert >= 4.0: None (NOK)", which will require you to resinstall configparser:一旦启动新的 Spyder “nbconvert >= 4.0: None (NOK)”,您可能会遇到错误,这将需要您重新安装 configparser:

conda uninstall configparser conda 卸载 configparser

conda install configparser康达安装配置解析器

You should now have a fresh and up to date installation of Spyder.您现在应该有一个全新且最新的 Spyder 安装。

This worked for me: conda install --force-reinstall pyqt qt这对我有用: conda install --force-reinstall pyqt qt
Based on this基于

In iOS,在 iOS 中,

  • Open Anaconda Navigator打开 Anaconda 导航器
  • Launch Spyder启动 Spyder
  • Click on the tab "Consoles" (menu bar)单击选项卡“控制台”(菜单栏)
  • Then, "New Console"然后,“新控制台”
  • Finally, in the console window, type conda update spyder最后,在控制台窗口中,输入conda update spyder

Your computer is going to start downloading and installing the new version.您的计算机将开始下载和安装新版本。 After finishing, just restart Spyder and that's it.完成后,只需重新启动 Spyder 即可。

It's very easy just in 2 click只需单击 2 次即可轻松完成

  1. Open Anaconda Navigator打开 Anaconda 导航器
  2. Go to Spyder icon转到 Spyder 图标
  3. Click on settings logo top-right coner of spider box单击蜘蛛框右上角的设置徽标
  4. Click update application点击更新应用

That it Happy coding它快乐编码

My solution was uninstalla spyder and installa again.我的解决方案是卸载 spyder 并再次安装。 Solved my problem:解决了我的问题:

conda uninstall spyder
conda install spyder=5

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

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