Friday, February 18, 2022

[SOLVED] Unable install requirements.txt

Issue

After cloning a Django application, I went to install the virtual environment in terminal.

I entered the folder and typed: pip install -r requirements.txt

but got the error: -bash: pip: command not found


Solution

It seems that you are missing the pip itself which you can install from packaging repository depending on your OS or download (manually or with wget) the and install it using python. This will automatically associate your python version with required pip version. See following commands:

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py


Answered By - Jirka
Answer Checked By - Mary Flores (WPSolving Volunteer)