pythonpytube

Pytube module not found


I installed pytube via pip, uninstalled it and reinstalled it couple off times, but always I'm getting an error "ModuleNotFoundError: No module named 'pytube'". When I insatlled it via cmd this is what it outputs(warning)

The script pytube.exe is installed in 'C:\Users\vid\AppData\Roaming\Python\Python37\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

trying to fix the problem for like 2 hours now. Help


Solution

    1. Run cmd as -> Right click, Run as Administrator and try again
    2. You may have 2 different Python installed, one from anaconda and one independent. Uninstall one and keep the conda one only
    3. Reinstall, but run the installer as Administrator
    4. Update pip "pip install --upgrade pip"