How to set environment variable for the updated youtube-dl installed from pip3?

kamer_kane

I referred to an answer here to install youtube-dl using pip. Although youtube-dl was installed by default in my Ubuntu 20.04, by apt, but it was outdated and showing errors.

Besides, I used pip3 to install it by the command,

pip3 install --upgrade youtube-dl

and also uninstalled the outdated youtube-dl by the apt package manager.

When I use the command pip3 show youtube-dl, it shows an output as following:

Name: youtube-dl
Version: 2020.6.16.1
Summary: YouTube video downloader
Home-page: https://github.com/ytdl-org/youtube-dl
Author: Ricardo Garcia
Author-email: [email protected]
License: Unlicense
Location: /home/vivek/.local/lib/python3.8/site-packages
Requires: 
Required-by:

I guess now I have to set it as environment variable so I can use it, since I am not able to use any of its commands, for eg.,

youtube-dl --version

gives me an output:

bash: /usr/bin/youtube-dl: No such file or directory

Gunnar Hjalmarsson

The youtube-dl script is probably located in the /home/vivek/.local/bin directory. In that case all you need to do is to log out and log in again. By doing so the code in your ~/.profile file will automatically add the directory to PATH.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to set Jenkins environment variable from script

From Dev

How to set `screen` environment variable from bash?

From Dev

How to set a variable with an environment variable read from a text file

From Dev

Unable to launch ReText installed with pip3 - how to fix?

From Dev

Environment variable not set, from Netbeans

From Dev

set environment variable from batch

From Dev

Environment variable not set, from Netbeans

From Dev

Are two instances of pip & youtube-dl installed after using sudo to update?

From Dev

How to select video quality from youtube-dl?

From Dev

How do I set a Machine environment variable from a Chocolatey package?

From Dev

How to set a global environment variable from Inno Setup installer?

From Dev

How to check if environment variable is set from C program

From Dev

How to set Windows environment variable from Tcl script

From Dev

How do I set a environment variable from a powershell command?

From Dev

How to set shell environment variable from autotools .am file?

From Dev

How do I set environment variable by importing from a file?

From Java

How to set GOPRIVATE environment variable

From Dev

How to set an integer as a environment variable?

From Dev

How to set environment variable in java

From Dev

How to set the environment variable in tox?

From Dev

How to permanently set an environment variable

From Dev

How to set environment variable permanently?

From Dev

rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)

From Dev

How to open youtube video with youtube-dl

From Dev

How can I download part of a playlist from YouTube with 'youtube-dl'?

From Dev

How can I download part of a playlist from YouTube with 'youtube-dl'?

From Dev

set an annotation attribute from an environment variable?

From Dev

How can I download a youtube playlist with youtube-dl and make it a mp3-playlist?

From Dev

how to set directory in ydl_opts in using youtube-dl in python?

Related Related

  1. 1

    How to set Jenkins environment variable from script

  2. 2

    How to set `screen` environment variable from bash?

  3. 3

    How to set a variable with an environment variable read from a text file

  4. 4

    Unable to launch ReText installed with pip3 - how to fix?

  5. 5

    Environment variable not set, from Netbeans

  6. 6

    set environment variable from batch

  7. 7

    Environment variable not set, from Netbeans

  8. 8

    Are two instances of pip & youtube-dl installed after using sudo to update?

  9. 9

    How to select video quality from youtube-dl?

  10. 10

    How do I set a Machine environment variable from a Chocolatey package?

  11. 11

    How to set a global environment variable from Inno Setup installer?

  12. 12

    How to check if environment variable is set from C program

  13. 13

    How to set Windows environment variable from Tcl script

  14. 14

    How do I set a environment variable from a powershell command?

  15. 15

    How to set shell environment variable from autotools .am file?

  16. 16

    How do I set environment variable by importing from a file?

  17. 17

    How to set GOPRIVATE environment variable

  18. 18

    How to set an integer as a environment variable?

  19. 19

    How to set environment variable in java

  20. 20

    How to set the environment variable in tox?

  21. 21

    How to permanently set an environment variable

  22. 22

    How to set environment variable permanently?

  23. 23

    rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)

  24. 24

    How to open youtube video with youtube-dl

  25. 25

    How can I download part of a playlist from YouTube with 'youtube-dl'?

  26. 26

    How can I download part of a playlist from YouTube with 'youtube-dl'?

  27. 27

    set an annotation attribute from an environment variable?

  28. 28

    How can I download a youtube playlist with youtube-dl and make it a mp3-playlist?

  29. 29

    how to set directory in ydl_opts in using youtube-dl in python?

HotTag

Archive