Home > Mobile >  Git bash returns bash: ls: command not found after venv is activated
Git bash returns bash: ls: command not found after venv is activated

Time:07-27

Bash works well but when venv is activated it throws back bash: ls: command not found. I tried some approaches to similar issues but yet couldn't get it fixed, I guess I am missing something out. I hope someone can help me spot the error.

enter image description here

CodePudding user response:

This happened because myProjects or um-test might be in your venv folder, since it work on your first command before activating venv, if I am right, then that is exatly the cause, what you should do is to move either myProjects or um-test or both to a diferrent folder.

Note: You have to confirm by going through your folders to know which one is found in your venv folder. Move it to a diferrent folder but in the same working directory where venv folder is located. Remember you might have to refactor some other paths in your python scripts if necessary.

E,g This might be cause an error

           
  • Related