天天看点

在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment

在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment
在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment

1.使用终端或Anaconda提示符执行以下步骤:

(1)查看Anaconda的位置:在cmd中输入conda env list,复制base后面的位置信息,不需要复制*号。

在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment

(2)输入conda activate C:\Users\Administrator\Anaconda3

在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment

(3)再输入python,没有出现警告了,完成。

2.如果出现如下图所示情况:

在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment

原因是:在C:\Users\Administrator中读pythonhistory文件,这个文件中包含中文,只要删除这个历史文件就好了。

在Anaconda Prompt中输入python出现Warning: This Python interpreter is in a conda environment