Fix Conda Activate Command not Working on Windows 10: A Beginner Guide

By | April 17, 2020

We can use conda activate command to activate an environment. However, you may find this command does not work on windows 10 command prompt (cmd.exe). In this tutorial, we will introduce you how to fix this problem.

For example, if you have typed command below:

conda activate py3.7

You may get an error like this:

conda activate command cannot work

How to fix this error to make conda activate work?

As to us, we use cmd.exe on windows 10. We can init it.

conda init cmd.exe

You will find the result.

conda init cmd.exe on windows 10

Then close cmd.exe and restart it.  Notice: this is very important.

Run conda activate py3.7 again, you will find this command working.

conda activate command works ok

Leave a Reply

Your email address will not be published. Required fields are marked *