Conda' is not recognized as an internal or external command

483    Asked by DanPeters in Python , Asked on May 6, 2021

 I installed Anaconda3 4.4.0 (32 bit) on my Windows 7 Professional machine and imported NumPy and Pandas on Jupyter notebook so I assume Python was installed correctly. But when I type conda list and conda --version in the command prompt, it says conda is not recognized as an internal or external command.

I have set environment variable for Anaconda3; Variable Name: Path, Variable Value: C:Usersdipanwita.neogyAnaconda3

How do I make it work?

Answered by Celina Lagunas

I was facing error:cannot lock ref and the solution worked for me:

  git remote prune origin

What this will do is it removes references to remote branches in the folder git/refs/remotes/origin. So this will not affect your local branches and it will not change anything remotely, but it will update the local references you have to remote branches. It seems in some cases these references may have data Git cannot handle correctly.



Your Answer

Interviews

Parent Categories