cmd warning: python interpreter is in a conda environment, but the environment has not been activated

前端 未结 2 821
忘了有多久
忘了有多久 2021-01-29 02:47

I installed Anaconda (added to path) but when I try to run Python from the cmd, I get the following message:

Warning: This Python interpreter is in a conda environme

相关标签:
2条回答
  • 2021-01-29 02:59

    Refer https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

    Earlier versions of conda introduced scripts to make activation behavior uniform across operating systems. Conda 4.4 allowed conda activate myenv. Conda 4.6 added extensive initialization support so that conda works faster and less disruptively on a wide variety of shells (bash, zsh, csh, fish, xonsh, and more). Now these shells can use the conda activate command. Removing the need to modify PATH makes conda less disruptive to other software on your system. For more information, read the output from conda init --help.

    One setting may be useful to you when using conda init is:

    auto_activate_base: bool

    0 讨论(0)
  • 2021-01-29 03:19

    Follow below steps

    1)open cmd and type "conda activate base"

    2)then type python

    Which will satisfy your problem

    0 讨论(0)
提交回复
热议问题