Tutorial Example

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

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:

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.

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

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