In windows 11, From the start menu, open the Anaconda Powershell Prompt
Then execute the activate cmd and it works fine.