Search code examples
pythonpython-3.xpytube

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


Solution

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