[英]Python interpreter is in a Conda environment, but the environment has not been activated
Installation:安装:
I'm a newbie in Python and I'm facing issues with Anaconda.我是 Python 的新手,我面临着 Anaconda 的问题。 Whenever I launch Anaconda Navigator it shows Python stopped working and crashes.每当我启动 Anaconda Navigator 时,它都会显示 Python 停止工作并崩溃。
Also if I type python
in the command prompt I get a warning:此外,如果我在命令提示符下键入python
,则会收到警告:
"Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation" “Python解释器在conda环境中,但该环境尚未激活。库可能无法加载。要激活此环境,请参阅https://conda.io/activation”
I have seen such questions before and tried the solutions, but nothing seems to work.我以前见过这样的问题并尝试过解决方案,但似乎没有任何效果。 I also tried to reinstall, but it's the same every time.我也尝试过重新安装,但每次都一样。
This seems to be 2 separate issues:这似乎是两个独立的问题:
conda activate base
.对于 python 命令,尝试激活您的环境: conda activate base
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.