jonyroy
jonyroy

Reputation: 187

I am getting ImportError no module named pytube from python3

I have installed pytube by following command

sudo pip install pytube 

It's ok when I import pytube from python 2.x. But I am getting ImportError while importing from python3

Upvotes: 0

Views: 3352

Answers (2)

Patryk Węgrzyński
Patryk Węgrzyński

Reputation: 1

Try to install pytube3:

sudo pip3 install pytube3

And after that you should be able to import pytube

Upvotes: 0

MosheZada
MosheZada

Reputation: 2399

Try to install the package with pip3 (sudo pip3 install pytube), in some operating systems pip refers to python2 and pip3 refers to python3.

Upvotes: 1

Related Questions