Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

When I try to utilize Pytube module, it actually shows this error:

from pytube import YouTube

ImportError: cannot import name 'YouTube'

1 Answer

0 votes
by (26.4k points)

I figure you didn't installed PyTube. 

To check for that you  need to type : 

pip list | grep PyTube

In the event that you discovered return as 

PyTube (0.1)

So you introduce PyTube if not you ought to introduce Pytube utilizing

sudo pip install PyTube

Else, You can try:

git clone https://github.com/nficano/pytube.git && cd pytube

setup.py build

sudo setup.py install

Are you interested to learn the concepts of Python? Join the python training course fast!

Related questions

0 votes
2 answers
asked Oct 15, 2019 in Python by Sammy (47.6k points)
0 votes
2 answers
0 votes
0 answers
asked Jun 24, 2021 in Python by Heman (120 points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...