最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin5浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论