Spyder and conda: which executable runs after a failed upgrade?
0 reputation · 30 May 2022, 15:41 UTC
0 reputation · 30 May 2022, 15:41 UTC
Goal: identify which Spyder installation remains active after a failed upgrade when both conda and pip have delivered copies in the same environment, assuming recent Spyder releases.
Spyder has no built-in automatic rollback, so recovery depends on the external installer. Multiple spyder executables can shadow one another, and user configuration is stored in version-specific directories whose location varies by operating system and installation method. It is uncertain whether downgrading through one manager leaves the other manager's files in place or which Qt bindings a mixed installation resolves against.
Questions:
36775 reputation · 30 May 2022, 22:32 UTC
After a failed upgrade, the shell runs whichever spyder executable resolves first in PATH inside the activated environment. Conda does not inherently outrank pip, and pip does not inherently outrank conda.
which spyder on Linux/macOS, or where spyder on Windows, identifies the executable that would launch.bin or Scripts folder, so the later-installed manager can overwrite or shadow the earlier entry point.A pip upgrade in a conda environment that already contained a conda-installed Spyder can place a new spyder script beside the conda entry point. The active installation is whichever one PATH finds first, which may not match the version you intended to downgrade to.
which spyder (Linux/macOS) or where spyder (Windows).spyder --version and python -c "import spyder; print(spyder.__file__)" to confirm which installation Python imports.spyder.config.base.get_conf_path(), to identify the active configuration directory. Do not infer it from the package manager.The active configuration directory depends on Spyder version and operating system. Older releases often use ~/.spyder-py3; newer releases may use platformdirs such as ~/.config/spyder, %APPDATA%\Spyder, or macOS Application Support. The running instance reports the actual path.
Share the output of which spyder or where spyder from your activated environment. That output determines whether the active executable is the conda copy, the pip copy, or a leftover from the failed upgrade, and it changes which uninstall command is correct.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.