4

I am trying to run a flask app with python. When I tried to pip install -r requirements.txt

I get the following error

   Failed to execute process '/Users/Kantemirovs/asdf/venv/bin/pip'. Reason:
The file '/Users/Kantemirovs/asdf/venv/bin/pip' specified the interpreter '/Users/Kantemirovs/asdf/venv/bin/python3', which is not an executable command.

Can somebody help me resolving this issue?

2
  • 3
    Check if /Users/Kantemirovs/asdf/venv/bin/python3 even exists. In case it does but is a symlink, check whether the path it points to exists. Things like this often happen when you upgrade your system Python e.g. from 3.8 to 3.9, but symlinks in virtualenvs keep pointing to the 3.8 executable, which no longer exists. In that case the easiest solution is usually to just recreate the virtualenv from scratch. Commented Jul 30, 2021 at 15:10
  • Does this answer your question? bad interpreter no such file or directory /usr/bin/python Commented Jul 31, 2021 at 1:00

1 Answer 1

2

try python -m pip install -r requirements.txt

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.