Why does pip say it can’t find requirements.txt?

0
4
Asked By MellowCedar42 On

I'm completely new to programming and was trying to install a desktop map for The Isle from a GitHub project. I downloaded and extracted the ZIP file, then opened Command Prompt and tried running `python -m pip install -r requirements.txt`, but I keep getting a "no such file or directory" error. I've been troubleshooting for over an hour and can't figure out what I'm missing. Do I need to change folders, install Python, or use a different command?

4 Answers

Answered By AmberWillow51 On

If the README suggests trying `py` when `python` doesn’t work, you can run `py -m pip install -r requirements.txt` instead. However, that still won’t work unless you’re inside the folder containing `requirements.txt`.

MellowCedar42 -

I tried using `py` too, but it didn’t work. I’ll check that I’m in the extracted project folder and verify Python is installed.

Answered By SilverKite28 On

Make sure the ZIP has actually been unpacked. The command needs to be run inside the extracted project directory, not from your general Downloads folder or while viewing the ZIP itself. Python also needs to be installed and available from Command Prompt.

Answered By NimblePebble63 On

Another option is to clone the project, move into its folder, and then install the requirements: `git clone https://github.com/hartwin-journey/The-Isle-Overlay.git`, then `cd The-Isle-Overlay`, followed by `python -m pip install -r requirements.txt`. Cloning requires Git to be installed.

Answered By BrightOtter7 On

That error usually means Command Prompt is looking in the wrong folder. After extracting the ZIP, open the folder that contains `requirements.txt` in File Explorer, click the address bar, type `cmd`, and press Enter. This opens Command Prompt in the correct directory. Then run `python -m pip install -r requirements.txt` again. Also confirm that Python is installed.

QuietMaple19 -

You can also navigate there manually with `cd`, followed by the full path to the extracted project folder.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.