Forums

ERROR: Could not open requirements file

Hi. I made git clone, after that i create virtualenv and try to install all from requirements.txt, but have ERROR

(YujinFreeman.pythonanywhere.com) 13:08 ~ $ find . -regex '.*requirements.txt$'
./YujinFreeman.pythonanywhere.com/requirements.txt
(YujinFreeman.pythonanywhere.com) 13:16 ~ $ python -m pip install -r requirements.txt           
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

[edit by admin: formatting]

You're running the command in your home directory, but as your find command shows, it's in a subdirectory called YujinFreeman.pythonanywhere.com. So you need to run

cd YujinFreeman.pythonanywhere.com

...and then run the pip install command.