python - No current environment with Conda on Windows - Stack Overflow

I just installed miniconda 3. When I run conda -V I get conda 25.1.1. My OS is Windows 11.When I try c

I just installed miniconda 3. When I run conda -V I get conda 25.1.1. My OS is Windows 11.

When I try conda info --envs I get a list of environments but no asterisk telling me what environment is active. I also tried conda info --envs which returns the same results. I tried echo $CONDA_DEFAULT_ENV which returned nothing. I tried the VS Code Terminal, Command Prompt, and Windows Powershell. All had the same results.

shows the last few lines of creating an environment, the results of conda env list

shows the results of conda env list on both Command Prompt and Powershell

I was able to create an environment seemingly without issue. And the new environment does appear in the list of environments.

I just want to know what what environment is activate. Anyone have any suggestions?

I just installed miniconda 3. When I run conda -V I get conda 25.1.1. My OS is Windows 11.

When I try conda info --envs I get a list of environments but no asterisk telling me what environment is active. I also tried conda info --envs which returns the same results. I tried echo $CONDA_DEFAULT_ENV which returned nothing. I tried the VS Code Terminal, Command Prompt, and Windows Powershell. All had the same results.

shows the last few lines of creating an environment, the results of conda env list

shows the results of conda env list on both Command Prompt and Powershell

I was able to create an environment seemingly without issue. And the new environment does appear in the list of environments.

I just want to know what what environment is activate. Anyone have any suggestions?

Share Improve this question edited Mar 10 at 17:11 juanpa.arrivillaga 96.6k14 gold badges138 silver badges186 bronze badges asked Mar 10 at 15:50 CateCate 11 bronze badge
Add a comment  | 

2 Answers 2

Reset to default 0

Did you do a conda init in your shell (Powershell)?
Maybe a conda init powershell or a conda init cmd.exe.

After that, turn autoactivate on

conda config --set auto_activate_base true

then, when you start in your corresponding shell, (base) will always appear at the beginning of the line, whenever you start a new session.

And a conda env list should show at least at the (base) an asterisk!

Well, how about activating an environment, to begin with? There's also a tutorial for that: Getting Started with conda Environments. If neither of the two answers here helps, possibly something went wrong with the installation.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744836889a4596316.html

相关推荐

  • python - No current environment with Conda on Windows - Stack Overflow

    I just installed miniconda 3. When I run conda -V I get conda 25.1.1. My OS is Windows 11.When I try c

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信