# Using Spyder in multiple virtual environment

**URL:** <https://forum.anaconda.com/t/using-spyder-in-multiple-virtual-environment/53189>\
**Category:** How do I...?\
**Created:** [March 29, 2023, 9:45pm UTC](https://forum.anaconda.com/t/using-spyder-in-multiple-virtual-environment/53189 "2023-03-29T21:45:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![C.R](https://avatars.discourse-cdn.com/v4/letter/c/80bc00/32.png) [@C.R](https://forum.anaconda.com/u/C.R)\
**Post date:** [March 29, 2023, 9:45pm UTC](https://forum.anaconda.com/t/using-spyder-in-multiple-virtual-environment/53189/1 "2023-03-29T21:45:06Z")

</div>

Hello Anaconda Community,

I’m using Spyder, installed in the base. I discovered the existance of multiple environment when reading documentation to install a new class, and now I’m getting confused about that.

I tried to create a new environment using `conda create -c conda-forge -n $NAME-env`  
Then I wanted to install the spyder-kernel to linked it to spyder by typing `conda activate $NAME` and then `conda install spyder-kernels`. This worked without error. But when I open Spyder, and change Python Interpreter to the new environment one in preferences I get this error `Error while finding module specification for 'spyder_kernels.console' (ModuleNotFoundError: No module named 'spyder_kernels')`

Does anyone have an advise regarding this problem ?

Also, I have a few more questions regarding this:

- Is it correct to have Spyder in base, and create a new environment to each project or should I re-install a new version of Spyder in each environment ? The second option looks weird to me…
- How should I do if I want to update my Python version ? Because it seems Spyder is somwhow associated to a version of Python -as writted in the top bar “Spyder (Python X.X)”

Thanks in advance for your help!
