Python 如何在anaconda上更新spyder
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41849718/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to update spyder on anaconda
提问by Diego
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
我在 win32 上安装了 Anaconda(Python 2.7.11 |Anaconda custom(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" --new-instance
Am I missing something?
我错过了什么吗?
回答by jrinker
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.
如果你想在 root 环境中更新 Spyder,那么conda update spyder
对我有用。
If you want to update Spyder for a virtual environment you have created (e.g., for a different version of Python), then conda update -n $ENV_NAME spyder
where $ENV_NAME
is your environment name.
如果您想为您创建的虚拟环境(例如,为不同版本的 Python)更新 Spyder,那么您的环境名称conda update -n $ENV_NAME spyder
在哪里$ENV_NAME
。
回答by theyk
回答by Ed Roberts
I see that you used pip to update. This is strongly discouraged (at least in Spyder 3). The Spyder update notices I receive have always included the following:
我看到您使用 pip 进行更新。强烈不鼓励这样做(至少在 Spyder 3 中)。我收到的 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 执行更新。 ”
回答by notilas
Use this conda install spyder=4.0.0
This will not mess up your anaconda dependencies.
https://github.com/spyder-ide/spyder/releases
使用它conda install spyder=4.0.0
这不会弄乱您的 anaconda 依赖项。
https://github.com/spyder-ide/spyder/releases
回答by ricalm
One way to avoid errors during installing or updating packages is to run the Anaconda prompt as Administrator. Hope it helps!
在安装或更新软件包期间避免错误的一种方法是以管理员身份运行 Anaconda 提示。希望能帮助到你!
回答by Codistan
回答by GoPackGo
This worked for me: conda install --force-reinstall pyqt qt
Based on: https://github.com/spyder-ide/spyder/issues/5525
这对我有用:conda install --force-reinstall pyqt qt
基于:https: //github.com/spyder-ide/spyder/issues/5525
回答by msjahid
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,请不要使用此命令,因为它可能会破坏您的安装。
回答by catra
In iOS,
在iOS中,
- Open Anaconda Navigator
- Launch Spyder
- Click on the tab "Consoles" (menu bar)
- Then, "New Console"
- Finally, in the console window, type
conda update spyder
- 打开 Anaconda 导航器
- 启动 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 即可。
回答by GurCoder
It's very easy just in 2 click
只需单击 2 次,就非常容易
- Open Anaconda Navigator
- Go to Spyder icon
- Click on settings logo top-right coner of spider box
- Click update application
- 打开 Anaconda 导航器
- 转到 Spyder 图标
- 单击蜘蛛框右上角的设置徽标
- 点击更新应用
That it Happy coding
它快乐编码