Tiago Peres
Tiago Peres

Reputation: 15642

How to install pytube3 in Anaconda?

In a quest to install pytube3 in Anaconda, searched for that package but couldn't find it

No pytube in Anaconda

Then, went to Anaconda Prompt and ran

conda install pytube3

No pytube in Anaconda prompt

None of this worked...

Upvotes: 0

Views: 4349

Answers (3)

Benoit6
Benoit6

Reputation: 9

type: conda install conda-forge::pytube

Upvotes: -1

StanS
StanS

Reputation: 11

If you'd like to install via Anaconda Prompt, try: conda install -c conda-forge pytube. See this reference for more details.

Upvotes: 1

Tiago Peres
Tiago Peres

Reputation: 15642

The easiest is to open Spyder and run the following in your kernel

pip install pytube3

Then, Restart kernel and you'll be able to use it just fine.

Now, if you run

pip show pytube3

you'll see something like this

pytube yey

If then you try to download a file and get an error

  File "C:\Users\tiago\Anaconda3\lib\site-packages\pytube\extract.py", line 301, in <listcomp>
    parse_qs(formats[i]["cipher"]) for i, data in enumerate(formats)

KeyError: 'cipher'

then this answer will help you.

Upvotes: 2

Related Questions