Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 22056  / 2 Years ago, sat, november 19, 2022, 8:49:48

In Ubuntu 20.04, we get the following error:



❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

❯ youtube-dl https://www.youtube.com/watch?v=b4mihzeFqGA
/usr/bin/env: ‘python’: No such file or directory


How can I fix it?


More From » python

 Answers
1

In Ubuntu 20.04, python3 is the installed default. The python variable is not set:



❯ which python
python not found


We can get around this by using python3 and which:



❯ python3 $(which youtube-dl) https://www.youtube.com/watch?v=0IE-CXNs6Sw
[youtube] 0IE-CXNs6Sw: Downloading webpage

[#3404] Saturday, November 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
doredtness

Total Points: 153
Total Questions: 113
Total Answers: 106

Location: South Georgia
Member since Fri, Nov 13, 2020
4 Years ago
doredtness questions
Tue, Aug 2, 22, 15:45, 2 Years ago
Sat, May 21, 22, 05:26, 2 Years ago
Wed, Aug 24, 22, 11:09, 2 Years ago
;