如何摆脱“设置" JAVA_HOME_CONDA_BACKUP =""信息?

问题描述:

每次我在Windows上启动命令提示符,然后激活我的conda环境时,都会收到两条消息:

Every time I start my command prompt on windows and then activate my conda environment I get two messages:

C:\Users\texas_cactus>set "JAVA_HOME_CONDA_BACKUP="

C:\Users\texas_cactus>set "JAVA_HOME=C:\Users\texas_cactus\AppData\Local\Continuum\anaconda3\envs\tc35\Library"

这些消息来自何处,我该如何摆脱它们? Google不是我的朋友.

Where are these messages coming from and how can I get rid of them? Google is not my friend here.

我用openjdk创建了一个环境

I created an environment with openjdk

当我激活环境时,我和您有相同的回声(除了我的路径)

when I activated the env I had the same echo as you (except with my path)

在anaconda3 \ envs \ tc35中寻找etc \ conda \ activate.d

in anaconda3\envs\tc35 look for etc\conda\activate.d

在我的数据库中,我找到了包含内容的java_home.bat

in mine, i found java_home.bat with the contents

set "JAVA_HOME_CONDA_BACKUP=%JAVA_HOME%" 
set "JAVA_HOME=%CONDA_PREFIX%\Library"

删除java_home.bat会在激活我的环境时停止回显,但是我不确定此后该软件包是否可以正常工作.

deleting java_home.bat stopped the echo when activating my env, but i'm not certain the package will work correctly after.

您可能可以放心地注释掉设置"JAVA_HOME_CONDA_BACKUP=%JAVA_HOME%",因为它仍然没有设置

you can probably safely comment out set "JAVA_HOME_CONDA_BACKUP=%JAVA_HOME%" since it's not set anyway