Page 1 of 1

Conda / Anaconda - keep the Editors (VScode, Spyder) up to date

Posted: Sat May 22, 2021 4:36 am
by say_hello
hello dear MX-Experts,

the topic of today: Conda / Anaconda - keep the Editors (VScode, Spyder) up to date


after having VSCode and Python on my mx-linux for more than a year - ( with several issues with environemts pypenv pyenv and all that things ) - i have choosen Anaconda. This is awesome - since i get rid of all the dependencies - (hell).


now - i run Aanconda - a older version - since i have installed this some months ago


Spyder: version 4.0
VSCode: 1.52.xy
Python 3.8.2


i want to update the parts of Anaconda manually - not the whole stuff:

i found a good source: https://stackoverflow.com/questions/451 ... e-anaconda

and here i do som manual updates for the


Spyder: version 4.0
VSCode: 1.52.xy
Python 3.8.2

Code: Select all

$ conda update spyder
Collecting package metadata (current_repodata.json): done
Solving environment: | 

Updating spyder is constricted by 

anaconda -> requires spyder==4.0.1=py37_0

If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`


done

## Package Plan ##

  environment location: /home/martin/anaconda3

  added / updated specs:
    - spyder


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    backports.functools_lru_cache-1.6.4|     pyhd3eb1b0_0           9 KB
    backports.tempfile-1.0     |     pyhd3eb1b0_1          11 KB
    conda-4.10.1               |   py37h06a4308_1         2.9 MB
    conda-package-handling-1.7.3|   py37h27cfd23_1         881 KB
    ------------------------------------------------------------
                                           Total:         3.7 MB

The following packages will be UPDATED:

  backports.functoo~                             1.6.1-py_0 --> 1.6.4-pyhd3eb1b0_0
  conda                                        4.8.2-py37_0 --> 4.10.1-py37h06a4308_1
  conda-package-han~                   1.6.0-py37h7b6447c_0 --> 1.7.3-py37h27cfd23_1

The following packages will be DOWNGRADED:

  backports.tempfile                               1.0-py_1 --> 1.0-pyhd3eb1b0_1


Proceed ([y]/n)? 

Downloading and Extracting Packages
backports.tempfile-1 | 11 KB     | ############################################################################ | 100% 
conda-4.10.1         | 2.9 MB    | ############################################################################ | 100% 
conda-package-handli | 881 KB    | ############################################################################ | 100% 
backports.functools_ | 9 KB      | ############################################################################ | 100% 
Preparing transaction: done
Verifying transaction: done
but that is pretty useless - the newest version of Spyder is 5.00

how to get this version!?

love to hear from you


update:

Code: Select all

(base) martin@mx:~
$ conda update spyder
Collecting package metadata (current_repodata.json): done
Solving environment: \ 

Updating spyder is constricted by 

anaconda -> requires spyder==4.0.1=py37_0

If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`

done

# All requested packages already installed.
well - i want to get Spder 5.0 - but this seems to be not possible due to the commands in terminal

Assumption: - i guess that this has to do with the Anaconda-Channeling - - a certain feature / behavior of Annaconda.


update: - i did some further investigations and search - see below:


Why is Conda not installing/updating the latest version of Spyder?
https://stackoverflow.com/questions/674 ... -of-spyder

But those bug reports and "solutions" were made one year ago. Spyder is on later versions now.
Why is conda still installing Spyder version 4.0.1, with all the issues, one year after 4.0.1 is known to be problematic? Why does it not update correctly to any later version? The latest version is supposed to be 5.0.0, with even 4.2.* rolled out before that.


The problem is with the Anaconda channel.

I uninstalled Spyder and then install with the line:

conda install spyder
and Spyder 5.0.0 was successfully installed.

Anaconda's Spyder page (https://anaconda.org/anaconda/spyder) gave the command as:

conda install -c anaconda spyder
which led to the installation of Spyder 4.0.1, instead of 5.0.0 which was what it was supposed to install as documented on the page itself.

note; its evident - that the Anaconda channeling - feature does stand in the way for a easy upgrade of spyder - on a sidenote: so i guess that we have the same behavior in VScode and the upgrad of VSCode..