Can't set custom interpreters in Preferences on macOS
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder(orpip, if not using Anaconda) - []
Could not reproduce insidenot applicablejupyter qtconsole(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset - Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
On a fresh copy of macOS 10.15.5 (“Catalina”), with a fresh install of Anaconda, it does not appear to be possible to use what your docs call “the modular approach” to set the Python interpreter if Spyder is runing under Python 3.7 and the desired version of the interpreter is Python 3.8.
I have checked, and the Python interpreter I’m trying to use is marked as executable, and can be used in a terminal shell to launch a Python REPL session. There appears to be nothing “invalid” about it.
What steps reproduce the problem?
- Install Anaconda
conda create -n test python=3.8 spyder-kernels- Launch spyder from the
baseenvironment (either from terminal or through Anaconda Navigator GUI) - Try to set the Python interpreter
Preferences > Python Interpreter > Use the following Python interpreterto/Users/username/opt/anaconda3/envs/test/bin/python
What is the expected output? What do you see instead?
Expected: consoles will use the Python 3.8 interpreter.
Actual: an error dialog saying:
You selected an invalid Python interpreter for the console so the previous interpreter will stay. Please make sure to select a valid one.
The message is accurate; the console interpreter has in fact stayed as the spyder-internal console (confirmed by import sys; print(sys.executable). Note that if step 2 above is changed to conda create -n test python=3.7 spyder-kernels then it is possible to set the interpreter, so it appears to be something specific about Python 3.8 that is the problem.
Paste Traceback/Error Below (if applicable)
Not applicable; internal console shows only startup greeting and empty prompt
Versions
- Spyder version: 4.1.3
- Python version: 3.7.6
- Qt version: 5.9.6
- PyQt version: 5.9.2
- Operating System name/version: Darwin 19.5.0
Dependencies
# Mandatory:
applaunchservices >=0.1.7 : 0.2.1 (OK)
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.5.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.16.1 (OK)
jedi =0.15.2 : 0.15.2 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
parso =0.5.2 : 0.5.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.0 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=0.25 : 2.4.4 (OK)
pyls >=0.31.9;<0.32.0 : 0.31.10 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.6.0 : 4.7.5 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.1.2 (OK)
spyder_kernels >=1.9.1;<1.10.0 : 1.9.1 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.1 (OK)
# Optional:
cython >=0.21 : 0.29.20 (OK)
matplotlib >=2.0.0 : 3.2.2 (OK)
numpy >=1.7 : 1.18.5 (OK)
pandas >=0.13.1 : 1.0.5 (OK)
scipy >=0.17.0 : 1.5.0 (OK)
sympy >=0.7.3 : 1.6.1 (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:46 (30 by maintainers)

Top Related StackOverflow Question
@juanis2112, thanks for helping @drammock with his problem. You did a great job guiding him to check that this bug was effectively fixed in our 4.1.4 version. Sorry for stepping in without reading the whole context of this issue.
Then you’ll be happy to hear that we’re working on our own installers for Windows and macOS for 4.2.0 (to be released in September).
Awesome, thanks @ccordoba12 !