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

Run youtube-dl with a different Python installation than my macOS' default python? #13724

Closed
SuperHenkie opened this issue Jul 24, 2017 · 1 comment

Comments

@SuperHenkie
Copy link

@SuperHenkie SuperHenkie commented Jul 24, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.07.23
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Question

I want (or rather, need) to run youtube-dl with a newer Python version. When checking my current Python version:

python --version says 2.7.10
whereas
brew info python says: python: stable 2.7.13 (bottled), HEAD

From 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?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 24, 2017

A possible way is adding an alias to .bashrc/.zshrc/...

alias youtube-dl="/path/to/new/python /path/to/youtube-dl"
@yan12125 yan12125 closed this Jul 24, 2017
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
2 participants
You can’t perform that action at this time.