Instead of 'versions of Anaconda' you should think in terms of conda environments. Anaconda is just a collection of conda packages including conda
itself, Python, Spyder, the Anaconda Navigator and so on, so any given 'version of Anaconda' just means a set of specific versions of those packages.
So if you think you have more than one 'version of Anaconda' installed, the question is which packages you actually have different versions of and where they are. Do you have different conda
environments with different versions of Python and other packages (which is how it's supposed to work) or do you somehow have two or three different installations with root environments in different places (probably not a good idea)?
To find out from a Python prompt where your Python interpreter is - including from the console in Spyder - you can type
import sys
sys.executable
When you think you're using Spyder 'in' a particular 'Anaconda version', how are you starting Spyder - by typing a command, from the Anaconda Navigator, or via a Start menu shortcut? If it's one of the first two then you should just activate
the environment you want to use before starting Spyder. If you're using a shortcut then it needs to be specific to the environment - creating a new env in Windows Anaconda may or may not create these shortcuts (if this is the problem, see the docs or ask a new question).
If you've activated an environment that contains Python and Spyder before running Spyder, then sys.executable
should point to the Python interpreter in that environment and you should have access to the specific versions of the modules that you have installed in that environment.
If your installation is indeed messed up with more than one root environment then you might do best to export the list of packages in each of your environments to a file with conda env export
, clean up your installation so you have only one, then recreate the environments from the environment files you exported.