How do I fix “no such file or directory” when installing a GitHub project?

0
6
Asked By MellowQuokka42 On

I'm completely new to programming and was trying to download an in-game map for The Isle. I downloaded and extracted the project from GitHub, but I can't get past the installation step. After opening Command Prompt, I've been running `python -m pip install -r requirements.txt`, but I keep receiving a "no such file or directory" error. I'm not sure whether I'm using the wrong folder, missing Python, or need to use a different command. What should I check?

3 Answers

Answered By CopperLynx7 On

That error usually means Command Prompt is open in the wrong folder. The `requirements.txt` file is inside the folder you extracted, while Command Prompt often starts somewhere like `C:UsersYourName`. Open the extracted project folder in File Explorer, click the address bar, type `cmd`, and press Enter. This opens Command Prompt directly in that folder. Then run `python -m pip install -r requirements.txt` again. Also confirm that Python is installed first.

NeonPanda58 -

Make sure the archive was actually extracted, not just opened while it’s still inside the ZIP file.

Answered By BriskMaple31 On

You need to change into the extracted project directory before running the command. You can do that with `cd`, followed by the folder’s full path. For example: `cd C:pathtoThe-Isle-Overlay` and then `python -m pip install -r requirements.txt`. The file must be located in the folder where you run the command.

Answered By QuartzOtter64 On

Another option is to download the project with Git and install from there: run `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`. If `python` isn’t recognized or the file still can’t be found, check that Python is installed and added to your system PATH. Some Windows setups use `py` instead of `python`, although that only helps if Python is installed correctly.

MellowQuokka42 -

I tried using `py` instead, but I’m still getting an error.

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.