Youtube-dl: Python not found (18.04)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I have done a clean install of 18.04 LTS.
I then installed youtube-dl using
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
When I try to use youtube-dl, I get the following error message:
rudolffischer@HP8770w:~$ youtube-dl -U
/usr/bin/env: âÂÂpythonâÂÂ: No such file or directory
Python 3 seems to be installed
rudolffischer@HP8770w:~$ python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Why?
python 18.04 youtube-dl
 |Â
show 3 more comments
up vote
1
down vote
favorite
I have done a clean install of 18.04 LTS.
I then installed youtube-dl using
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
When I try to use youtube-dl, I get the following error message:
rudolffischer@HP8770w:~$ youtube-dl -U
/usr/bin/env: âÂÂpythonâÂÂ: No such file or directory
Python 3 seems to be installed
rudolffischer@HP8770w:~$ python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Why?
python 18.04 youtube-dl
What do you see withapt list --installed | grep -i python2
?
â DK Bose
May 18 at 7:23
What about python 2? (python
)
â ubashu
May 18 at 7:26
@ubashu Python 2.x is not installed by default in Ubuntu 18.04. The default Python version in Ubuntu 18.04 is Python 3.6 like the code block in the question says. This same Python 3.x package is a dependency of youtube-dl in Ubuntu 18.04.
â karel
May 18 at 7:36
@ubashu you're correct: according to the GitHub page, "It requires the Python interpreter, version 2.6, 2.7, or 3.2+ ..."
â DK Bose
May 18 at 11:05
@karel I thought it was.. so it is the default now?... Going the way of Arch Linux - isn't this suppose to be LTS. But there is a good point why they would do that - Python 2 is EOL 2020.
â ubashu
May 19 at 0:33
 |Â
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have done a clean install of 18.04 LTS.
I then installed youtube-dl using
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
When I try to use youtube-dl, I get the following error message:
rudolffischer@HP8770w:~$ youtube-dl -U
/usr/bin/env: âÂÂpythonâÂÂ: No such file or directory
Python 3 seems to be installed
rudolffischer@HP8770w:~$ python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Why?
python 18.04 youtube-dl
I have done a clean install of 18.04 LTS.
I then installed youtube-dl using
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
When I try to use youtube-dl, I get the following error message:
rudolffischer@HP8770w:~$ youtube-dl -U
/usr/bin/env: âÂÂpythonâÂÂ: No such file or directory
Python 3 seems to be installed
rudolffischer@HP8770w:~$ python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Why?
python 18.04 youtube-dl
edited May 19 at 0:33
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
ubashu
2,23221736
2,23221736
asked May 18 at 7:17
jacobacci
112
112
What do you see withapt list --installed | grep -i python2
?
â DK Bose
May 18 at 7:23
What about python 2? (python
)
â ubashu
May 18 at 7:26
@ubashu Python 2.x is not installed by default in Ubuntu 18.04. The default Python version in Ubuntu 18.04 is Python 3.6 like the code block in the question says. This same Python 3.x package is a dependency of youtube-dl in Ubuntu 18.04.
â karel
May 18 at 7:36
@ubashu you're correct: according to the GitHub page, "It requires the Python interpreter, version 2.6, 2.7, or 3.2+ ..."
â DK Bose
May 18 at 11:05
@karel I thought it was.. so it is the default now?... Going the way of Arch Linux - isn't this suppose to be LTS. But there is a good point why they would do that - Python 2 is EOL 2020.
â ubashu
May 19 at 0:33
 |Â
show 3 more comments
What do you see withapt list --installed | grep -i python2
?
â DK Bose
May 18 at 7:23
What about python 2? (python
)
â ubashu
May 18 at 7:26
@ubashu Python 2.x is not installed by default in Ubuntu 18.04. The default Python version in Ubuntu 18.04 is Python 3.6 like the code block in the question says. This same Python 3.x package is a dependency of youtube-dl in Ubuntu 18.04.
â karel
May 18 at 7:36
@ubashu you're correct: according to the GitHub page, "It requires the Python interpreter, version 2.6, 2.7, or 3.2+ ..."
â DK Bose
May 18 at 11:05
@karel I thought it was.. so it is the default now?... Going the way of Arch Linux - isn't this suppose to be LTS. But there is a good point why they would do that - Python 2 is EOL 2020.
â ubashu
May 19 at 0:33
What do you see with
apt list --installed | grep -i python2
?â DK Bose
May 18 at 7:23
What do you see with
apt list --installed | grep -i python2
?â DK Bose
May 18 at 7:23
What about python 2? (
python
)â ubashu
May 18 at 7:26
What about python 2? (
python
)â ubashu
May 18 at 7:26
@ubashu Python 2.x is not installed by default in Ubuntu 18.04. The default Python version in Ubuntu 18.04 is Python 3.6 like the code block in the question says. This same Python 3.x package is a dependency of youtube-dl in Ubuntu 18.04.
â karel
May 18 at 7:36
@ubashu Python 2.x is not installed by default in Ubuntu 18.04. The default Python version in Ubuntu 18.04 is Python 3.6 like the code block in the question says. This same Python 3.x package is a dependency of youtube-dl in Ubuntu 18.04.
â karel
May 18 at 7:36
@ubashu you're correct: according to the GitHub page, "It requires the Python interpreter, version 2.6, 2.7, or 3.2+ ..."
â DK Bose
May 18 at 11:05
@ubashu you're correct: according to the GitHub page, "It requires the Python interpreter, version 2.6, 2.7, or 3.2+ ..."
â DK Bose
May 18 at 11:05
@karel I thought it was.. so it is the default now?... Going the way of Arch Linux - isn't this suppose to be LTS. But there is a good point why they would do that - Python 2 is EOL 2020.
â ubashu
May 19 at 0:33
@karel I thought it was.. so it is the default now?... Going the way of Arch Linux - isn't this suppose to be LTS. But there is a good point why they would do that - Python 2 is EOL 2020.
â ubashu
May 19 at 0:33
 |Â
show 3 more comments
2 Answers
2
active
oldest
votes
up vote
5
down vote
youtube-dl can be installed from the default repositories in all currently supported versions of Ubuntu with this command:
sudo apt install youtube-dl
youtube-dl that is installed by this command should work fine without needing to be updated, except by the usual default software updates.
youtube-dl's self-update mechanism is disabled on Debian-based operating systems. You can update to the latest version of youtube-dl either with pip or by installing the youtube-dl snap package.
sudo apt remove youtube-dl
sudo apt install python3-pip
sudo pip3 install youtube-dl
or
sudo snap install youtube-dl-casept
1
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
add a comment |Â
up vote
0
down vote
You should be able to run youtube-dl with your version of python by doing:
/your/path/python3 /usr/local/bin/youtube-dl
Find out your python3 path by doing which python3
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
youtube-dl can be installed from the default repositories in all currently supported versions of Ubuntu with this command:
sudo apt install youtube-dl
youtube-dl that is installed by this command should work fine without needing to be updated, except by the usual default software updates.
youtube-dl's self-update mechanism is disabled on Debian-based operating systems. You can update to the latest version of youtube-dl either with pip or by installing the youtube-dl snap package.
sudo apt remove youtube-dl
sudo apt install python3-pip
sudo pip3 install youtube-dl
or
sudo snap install youtube-dl-casept
1
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
add a comment |Â
up vote
5
down vote
youtube-dl can be installed from the default repositories in all currently supported versions of Ubuntu with this command:
sudo apt install youtube-dl
youtube-dl that is installed by this command should work fine without needing to be updated, except by the usual default software updates.
youtube-dl's self-update mechanism is disabled on Debian-based operating systems. You can update to the latest version of youtube-dl either with pip or by installing the youtube-dl snap package.
sudo apt remove youtube-dl
sudo apt install python3-pip
sudo pip3 install youtube-dl
or
sudo snap install youtube-dl-casept
1
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
add a comment |Â
up vote
5
down vote
up vote
5
down vote
youtube-dl can be installed from the default repositories in all currently supported versions of Ubuntu with this command:
sudo apt install youtube-dl
youtube-dl that is installed by this command should work fine without needing to be updated, except by the usual default software updates.
youtube-dl's self-update mechanism is disabled on Debian-based operating systems. You can update to the latest version of youtube-dl either with pip or by installing the youtube-dl snap package.
sudo apt remove youtube-dl
sudo apt install python3-pip
sudo pip3 install youtube-dl
or
sudo snap install youtube-dl-casept
youtube-dl can be installed from the default repositories in all currently supported versions of Ubuntu with this command:
sudo apt install youtube-dl
youtube-dl that is installed by this command should work fine without needing to be updated, except by the usual default software updates.
youtube-dl's self-update mechanism is disabled on Debian-based operating systems. You can update to the latest version of youtube-dl either with pip or by installing the youtube-dl snap package.
sudo apt remove youtube-dl
sudo apt install python3-pip
sudo pip3 install youtube-dl
or
sudo snap install youtube-dl-casept
edited Jun 18 at 5:41
answered May 18 at 7:27
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
karel
49.7k11105127
49.7k11105127
1
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
add a comment |Â
1
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
1
1
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
try to avoid first method which will download older version, it has bugs. Second method will be best.
â Debian_yadav
May 18 at 7:51
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
It's not bugs in youtube-dl, it's just that youtube-dl is out-of-date because Google frequently changes the rules for downloading YouTube videos faster than youtube-dl updates itself.
â karel
May 18 at 7:53
add a comment |Â
up vote
0
down vote
You should be able to run youtube-dl with your version of python by doing:
/your/path/python3 /usr/local/bin/youtube-dl
Find out your python3 path by doing which python3
add a comment |Â
up vote
0
down vote
You should be able to run youtube-dl with your version of python by doing:
/your/path/python3 /usr/local/bin/youtube-dl
Find out your python3 path by doing which python3
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You should be able to run youtube-dl with your version of python by doing:
/your/path/python3 /usr/local/bin/youtube-dl
Find out your python3 path by doing which python3
You should be able to run youtube-dl with your version of python by doing:
/your/path/python3 /usr/local/bin/youtube-dl
Find out your python3 path by doing which python3
answered Aug 13 at 5:26
AlexG
1012
1012
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037666%2fyoutube-dl-python-not-found-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What do you see with
apt list --installed | grep -i python2
?â DK Bose
May 18 at 7:23
What about python 2? (
python
)â ubashu
May 18 at 7:26
@ubashu Python 2.x is not installed by default in Ubuntu 18.04. The default Python version in Ubuntu 18.04 is Python 3.6 like the code block in the question says. This same Python 3.x package is a dependency of youtube-dl in Ubuntu 18.04.
â karel
May 18 at 7:36
@ubashu you're correct: according to the GitHub page, "It requires the Python interpreter, version 2.6, 2.7, or 3.2+ ..."
â DK Bose
May 18 at 11:05
@karel I thought it was.. so it is the default now?... Going the way of Arch Linux - isn't this suppose to be LTS. But there is a good point why they would do that - Python 2 is EOL 2020.
â ubashu
May 19 at 0:33