Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PYTUBE module error

Every time I try to use the PYTUBE module it shows this error.

from pytube import YouTube
ImportError: cannot import name 'YouTube'
like image 957
Abdilatif Musa Avatar asked Oct 15 '25 15:10

Abdilatif Musa


2 Answers

I think you did not install PyTube.

to check for that you can type that :

pip list | grep PyTube

If you found return as

PyTube (0.1)

So you install PyTube if not you should install Pytube using

sudo pip install PyTube

or you can use

git clone https://github.com/nficano/pytube.git && cd pytube
setup.py build
sudo setup.py install

I hope to help

like image 151
Ahmed Hussein Avatar answered Oct 18 '25 05:10

Ahmed Hussein


pip uninstall pytube 

and install pytube3 using pip install pytube3

like image 29
Lokendra Kumar Ved Avatar answered Oct 18 '25 04:10

Lokendra Kumar Ved



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!