how to solve "bad interpreter: Too many levels of symbolic links" how to solve "bad interpreter: Too many levels of symbolic links" linux linux

how to solve "bad interpreter: Too many levels of symbolic links"


I had the same issue, and solved it simply by removing the old env file with rm -rf env. Then I created a new environment with virtualenv env, followed by installing the requirements, normally pip install -r requirements.txt, then I was able to run my app successfully.


You may have python running in some other instance of terminal. Make sure to close all additional instances of terminals


When I tried to install Tensorflow by Virtualenv, I confronted this question too. I just removed the old env, then built a new env. It works.

When I type which pip, it returns /Users/xiang/tensorflow/bin/pip. Which is exactly the path in the new env I built.