I’m trying to run Spyder in Anaconda under a "–stack"ed environment. I’ve had no luck getting the Spyder kernel to be aware of modules in the stacked environment.
To be clear, I’m not looking to go down any rabbit holes of setting up explicit Spyder kernels or module paths. I would just like to find the simplest, most Anaconda-native way to achieve this – as if the stacked environment was a single environment.
Background:
base
environment has Spyder installed
aras
environment has modules including ‘oauthlib’
The script runs on the command line under aras
with or without the stacking.
To reproduce:
Open terminal (starts in base
environment)
Run conda activate aras
Run spyder
to launch Spyder.
On Spyder, try run the offending script.
Observe error: ModuleNotFoundError: No module named 'oauthlib'
Things I’ve tried:
I can change the stack order of the two environments, and that still doesn’t make Spyder aware of the modules.
I have auto_stack config set to 1; I also explicitly try with conda --stack
with no difference.
I have not found this specific issue covered in Google searches or in this community. It does seem like --stack
is a new feature.
Is this a bug/oversight in Anaconda or Spyder? Am I completely missing the point of --stack
? Is there an easy/native fix short of messing with Spyder kernel/module paths?