when I imported pytube in normal mode it works just fine,
but when i do the same on superuser it gives error saying
ImportError: No module named pytube
wanted to use it in file management so needed superuser in python.
Notice the Python interpreter is different. On su mode you are accessing the python 2.7 and on normal user you are accessing the python 3.6 of Anaconda. Module path is different for each interpreter. You can be explicit by saying python3 or python2. Or check your Environment variables.