how to update spyder on anaconda
Question:
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
Would like to update Spyder to the latest version, so I went through the commands:
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:
C:Anaconda2pythonw.exe C:Anaconda2cwp.py C:Anaconda2 “C:/Anaconda2/pythonw.exe” “C:/Anaconda2/Scripts/spyder-script.py” –new-instance
Am I missing something?
Answers:
To expand on juanpa.arrivillaga‘s comment:
If you want to update Spyder in the root environment, then conda update spyder
works for me.
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.
EDIT: In case conda update spyder
isn’t working, this post indicates you might need to run conda update anaconda
before updating spyder. Also note that you can specify an exact spyder version if you want.
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:
“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.”
One way to avoid errors during installing or updating packages is to run the Anaconda prompt as Administrator. Hope it helps!
Using pip directly:
WARNING: This will break your Anaconda Installation as described by Spyder maintainer in the comments below; you can try this solution only if the solution mentioned above that use Conda do not work
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:
conda uninstall configparser
conda install configparser
You should now have a fresh and up to date installation of Spyder.
Go to Anaconda Naviagator, find spyder,click settings in the top right corner of the spyder app.click update tab
This worked for me: conda install --force-reinstall pyqt qt
Based on this
Use this conda install spyder=4.0.0
This will not mess up your anaconda dependencies.
https://github.com/spyder-ide/spyder/releases
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):
conda install spyder= Your desire version
(For example, Version is 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):
pip install --pre -U spyder
Note: Do not use this command if you are using Anaconda because it could break your installation.
In 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
Your computer is going to start downloading and installing the new version. After finishing, just restart Spyder and that’s it.
It’s very easy just in 2 click
- Open Anaconda Navigator
- Go to Spyder icon
- Click on settings logo top-right coner of spider box
- Click update application
That it
Happy coding
make sure you in your base directory.
then conda install spyder
will work.
Do it like this: conda install spyder=new_version_number
.
new_version_number should be in digits.
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
How to solve the error
1- update your anaconda
conda update anaconda
2- go to anaconda then spyder
or use this command
conda install spyder=5.0.0
My solution was uninstalla spyder and installa again.
Solved my problem:
conda uninstall spyder
conda install spyder=5
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
Would like to update Spyder to the latest version, so I went through the commands:
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:
C:Anaconda2pythonw.exe C:Anaconda2cwp.py C:Anaconda2 “C:/Anaconda2/pythonw.exe” “C:/Anaconda2/Scripts/spyder-script.py” –new-instance
Am I missing something?
To expand on juanpa.arrivillaga‘s comment:
If you want to update Spyder in the root environment, then conda update spyder
works for me.
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.
EDIT: In case conda update spyder
isn’t working, this post indicates you might need to run conda update anaconda
before updating spyder. Also note that you can specify an exact spyder version if you want.
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:
“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.”
One way to avoid errors during installing or updating packages is to run the Anaconda prompt as Administrator. Hope it helps!
Using pip directly:
WARNING: This will break your Anaconda Installation as described by Spyder maintainer in the comments below; you can try this solution only if the solution mentioned above that use Conda do not work
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:
conda uninstall configparser
conda install configparser
You should now have a fresh and up to date installation of Spyder.
Go to Anaconda Naviagator, find spyder,click settings in the top right corner of the spyder app.click update tab
This worked for me: conda install --force-reinstall pyqt qt
Based on this
Use this conda install spyder=4.0.0
This will not mess up your anaconda dependencies.
https://github.com/spyder-ide/spyder/releases
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):
conda install spyder= Your desire version
(For example, Version is 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):
pip install --pre -U spyder
Note: Do not use this command if you are using Anaconda because it could break your installation.
In 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
Your computer is going to start downloading and installing the new version. After finishing, just restart Spyder and that’s it.
It’s very easy just in 2 click
- Open Anaconda Navigator
- Go to Spyder icon
- Click on settings logo top-right coner of spider box
- Click update application
That it
Happy coding
make sure you in your base directory.
then conda install spyder
will work.
Do it like this: conda install spyder=new_version_number
.
new_version_number should be in digits.
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
How to solve the error
1- update your anaconda
conda update anaconda
2- go to anaconda then spyder
or use this command
conda install spyder=5.0.0
My solution was uninstalla spyder and installa again.
Solved my problem:
conda uninstall spyder
conda install spyder=5