简体   繁体   English

Python解释器在Conda环境中,但是该环境没有被激活

[英]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.我也尝试过重新安装,但每次都一样。

Try:尝试:

conda activate base

Or create a venv :或者创建一个venv

conda create my_env
conda activate my_env

Or install the Python system directly.或者直接安装Python系统。 Download from here .这里下载。

This seems to be 2 separate issues:这似乎是两个独立的问题:

  1. Crashing on Anaconda Navigator startup Anaconda Navigator 启动时崩溃
    Try to update pyqt, for more information see: https://github.com/ContinuumIO/anaconda-issues/issues/10088尝试更新pyqt,更多信息参见: https : //github.com/ContinuumIO/anaconda-issues/issues/10088
  2. For the python commands try to activate your environment: conda activate base .对于 python 命令,尝试激活您的环境: conda activate base

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows CMD:“这个Python解释器在conda环境中,但是环境还没有激活” - Windows CMD: "This Python interpreter is in a conda environment, but the environment has not been activated" cmd警告:python解释器在conda环境中,但是环境没有被激活 - cmd warning: python interpreter is in a conda environment, but the environment has not been activated 警告“此 Python 解释器处于 conda 环境中,但该环境尚未激活” - Warning "This Python interpreter is in a conda environment, but the environment has not been activated" 这个Python解释器在conda环境下,但是环境还没有激活 - This Python interpreter is in a conda environment, but the environment has not been activated Python Anaconda解释器在conda环境下,但是环境没有激活 - Python Anaconda interpreter is in a conda environment, but the environment has not been activated Python在conda环境下,但是在Windows虚拟环境下还没有激活 - Python is in a Conda environment, but it has not been activated in a Windows virtual environment 在激活 conda 环境的情况下,在 powershell 中使用 Python - Use Python in powershell with conda environment activated Python 解释器(VScode)“激活”一个 conda 环境,但环境没有改变 - Python interpreter (VScode) "activates" a conda environment, but the environment doesn't change conda build 忽略我激活的环境? - conda build ignoring my activated environment? CondaUpgradeError:此环境之前已由较新的 conda 版本操作过 - CondaUpgradeError: This environment has previously been operated on by a conda version that's newer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM