question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuring youtube-dl to use Python 3.4 instead of 2.7

See original GitHub issue

I have both Python 3.4 and Python 2.7 installed (both are the 64-bit versions on Windows 7). I’ve already set the PY_PYTHON environment variable to 3 (i.e. py.exe should run Python 3 by default, unless specified to run Python 2).py.exe --version gives an output of Python 3.4.3.

However, when I run youtube-dl, I get a [debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1 message. The reason I would like to use Python 3 is to get around the bug where output filenames have non-ASCII, Unicode characters stripped, which happens in Python 2.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
lorenaceballoscommented, May 5, 2019

orena@lorena-To-be-filled-by-O-E-M:~$ pip3 install --upgrade youtube-dl Collecting youtube-dl Downloading https://files.pythonhosted.org/packages/ad/1f/ae3e500935979bec629bab80be8b6fea00f7d5e8cb29564cf0f9c5afe975/youtube_dl-2019.4.30-py2.py3-none-any.whl (1.8MB) |████████████████████████████████| 1.8MB 1.1MB/s Installing collected packages: youtube-dl Found existing installation: youtube-dl 2018.3.14 ERROR: Cannot uninstall ‘youtube-dl’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

pip3 install --upgrade youtube-dl

0reactions
gamersalphacommented, Apr 26, 2020

Hello not working 😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get youtube-dl to use python 3 and instead of python 2
I have python 2.7 and python 3 installed on my system and I want youtube-dl to use the python 3 version. I removed...
Read more >
yt-dlp - PyPI
yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. The main focus of this project is adding new features and patches...
Read more >
Youtube-dl: Python not found (18.04) - Ask Ubuntu
On Ubuntu 18.04.2 LTS with youtube-dl version 2019.06.08, after creating symbolic link with following command: $ sudo ln -s /usr/bin/python3 ...
Read more >
youtube-dl
youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or...
Read more >
How to rebuild python youtube-dl from the source
For development, it's often easier to run the tests instead. ... test running youtube-dl on Python3.8 instead of my system default 2.7.12 I ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found