Configuring youtube-dl to use Python 3.4 instead of 2.7
See original GitHub issueI 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:
- Created 9 years ago
- Reactions:2
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Hello not working 😢