停用conda environmen后不再发现Python

2024-05-20 00:04:52 发布

您现在位置:Python中文网/ 问答频道 /正文

enter image description here

我正在win10上使用gitbash,试图建立一个conda环境。我注意到以下行为:

/c/r2/tutorial (master)
$ which python
/c/Miniconda3/python

/c/r2/tutorial (master)
$ source activate /c/Miniconda3/envs/morepath/
(/c/Miniconda3/envs/morepath/)
/c/r2/tutorial (master)
$ which python
/c/Miniconda3/envs/morepath/python
(/c/Miniconda3/envs/morepath/)
/c/r2/tutorial (master)
$ source deactivate /c/Miniconda3/envs/morepath/

/c/r2/tutorial
$ which python
/c/r2/tutorial
$ 

我的环境变量在截图中。这是怎么回事?我该怎么修?你知道吗


Tags: mastersourcewhich环境morepath环境变量condatutorial