解决 conda 4.6.11 激活环境报错问题

解决 conda 4.6.11 中 activate 激活环境失败的问题

环境4.6.11

使用命令 conda activate tensorflow-gpuenv 激活环境时报错

显示以下错误:

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):

(此处省略若干行Traceback信息...)

An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

解决方法

C:\Users\23755\Anaconda3C:\Users\23755\Anaconda3\Scripts 从环境变量 Path 中移除

原因及相关:

conda 4.6 版本不再依赖 PATH 路径的配置了

这是官方发行文档的说明:

We’re especially excited about this new way of working,
because removing the need to modify PATH makes Conda much
less disruptive to other software on your system.

发行文档链接:
https://www.anaconda.com/conda-4-6-release/