Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Run youtube-dl with a different Python installation than my macOS' default python? #13724
Comments
|
A possible way is adding an alias to alias youtube-dl="/path/to/new/python /path/to/youtube-dl" |
I want (or rather, need) to run youtube-dl with a newer Python version. When checking my current Python version:
python --versionsays2.7.10whereas
brew info pythonsays:python: stable 2.7.13 (bottled), HEADFrom many different resources I see a strong recommendation NOT to mess with my main macOS' python version, but instead install a second version separately. Which I apparently have done with brew already.
Question: how do I let youtube-dl use the more recent Python version that is installed through Homebrew, in my case v2.7.13 which resides in
/usr/local/Cellar/python/2.7.13_1?(as opposed to the macOS default older python installation which is in
/usr/bin/python)Can I somehow configure youtube-dl to use the other Python?