Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run latest master branch with Terminal at Folder (command not found) #26396

Closed
qu4ntumrush opened this issue Aug 21, 2020 · 4 comments
Closed
Labels

Comments

@qu4ntumrush
Copy link

@qu4ntumrush qu4ntumrush commented Aug 21, 2020

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

I want to use personally the latest master branch which isn't installed using "brew install youtube-dl". I've downloaded the repository with GitHub Desktop as well as the master files in my Downloads folder, but NOT youtube-dl via HomeBrew. Opening a New Terminal At Folder within either of these locations, I cannot run youtube-dl commands without a "command not found" error, even after adding the folder paths to the PATH environmental variables:

PATH=$PATH:~/Documents/GitHub/youtube-dl
PATH=$PATH:~/Downloads/youtube-dl-master
echo $PATH
/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/qu4ntumrush/Documents/GitHub/youtube-dl/bin:/Users/qu4ntumrush/Downloads/youtube-dl-master/
youtube-dl [URL]
-bash: youtube-dl: command not found

Do I have to install it with Brew and how do I make sure it is using the updated files in any of the named folders?

@blackjack4494
Copy link

@blackjack4494 blackjack4494 commented Aug 21, 2020

You are apparently using Mac(?) you will need to use make first. You should read the documentation really... other possibilities execute __main__.py or make youtube-dl (tho this is just like make)

@qu4ntumrush
Copy link
Author

@qu4ntumrush qu4ntumrush commented Aug 21, 2020

You are apparently using Mac(?) you will need to use make first. You should read the documentation really... other possibilities execute __main__.py or make youtube-dl (tho this is just like make)
Okay, so which 'main.py' file do I modify if I have at least two branch directories and three executables?

@s104346
Copy link

@s104346 s104346 commented Aug 22, 2020

Navigate to the main youtube-dl directory (the one that contains a youtube_dl folder) and run python -m youtube_dl instead of just youtube-dl.

@qu4ntumrush
Copy link
Author

@qu4ntumrush qu4ntumrush commented Aug 23, 2020

Navigate to the main youtube-dl directory (the one that contains a youtube_dl folder) and run python -m youtube_dl instead of just youtube-dl.

Confirmed to work, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.