激活虚拟环境learn之后,输入python指令想启动虚拟环境learn的python版本命令行,但是启动的却是base环境的python版本,该怎么解决?

win11下在Anaconda Prompt (anaconda3)中激活虚拟环境learn之后,输入python指令想启动虚拟环境learn的python版本命令行,但是启动的却是base环境的python版本,而显示当前环境却是虚拟环境learn。在pycharm中的终端、cmd命令行也是出现这个问题。
base环境的python版本是3.9,虚拟环境learn的python版本是3.8。

(base) C:\Users\xxx>conda activate learn

(learn) C:\Users\xxx>python
Python 3.9.16 (main, Jan 11 2023, 16:16:36) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

(learn) C:\Users\xxx>

img

不知道你这个问题是否已经解决, 如果还没有解决的话:

安装anaconda后,先配置国内镜像源(极其有用)
以下是代码段,配置完环境变量后直接在cmd就能运行,若没配置,请在anaconda prompt中输入

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^