PYTUBE module error

Abdilatif Musa picture Abdilatif Musa · Jan 1, 2016 · Viewed 12.4k times · Source

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

from pytube import YouTube
ImportError: cannot import name 'YouTube'

Answer

wow2006 picture wow2006 · Mar 19, 2016

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