Conda update --all --force-reinstall doesn't repair ipython error

I have a desktop with an installation of miniconda, and I have 2 environments besides the base environment. After some failures, about a 1-2 years ago, I had to create a new environment named “main” with the packages I needed (like numpy, pandas, ipython, jupyter, …, tensorflow…).

After that, after some difficulties with the Windows 11 itself, I tried to call ipython in the environment “main”: it gave the error of ModuleNotFound (prompt-toolkit). Apparently, ipython is ok in other environment of mine.

Thus after trying remove and reinstalling ipython, which didn’t work, I ran:

conda update --all --force-reinstall

Apparently it went well.

However, when I tried to run ipython, it gave exactly the same error as before.

What can I do? Kill this environment and create another (e.g. “mainenv”). How?

I am running a recent version of python3 and conda.

Note: Meanwhile I tried to correct my Window environment (sfc /scannow and dism …).