lang/python/ AnacondaInstallSpyderInEnvironment1
See this stackoverflow question which refers to this official reference here.
- Spyder should be installed in the base environment.
- Activate the target environment (e.g.
conda activate py39a
). - Install
spyder-kernels
(e.g.conda install spyder-kernels
) - find and copy the path for the python executable inside the environment (
python -c "import sys; print(sys.executable)"
) - deactivate the environment (e.g.
conda deactivate
) - run Spyder
- Spyder→Tool→Preferences→Python Interpreter→Use the following interpreter→paste the environment python executable path.
- Restart the ipython console.