my code start with:
"from pytube import YouTube"
an the error is:
unresolved import 'pytube
How can i inport pytube library?
my code start with:
"from pytube import YouTube"
an the error is:
unresolved import 'pytube
How can i inport pytube library?
For the use of the module "pytube" in VS Code, you could refer to the following:
Please check whether the python used by the terminal is the same as the python currently selected (Shown in the lower left corner of VS Code.) by VS Code: (pip --version
or python --version
)
If they are not the same, please use the shortcut key Ctrl+Shift+` to open a new terminal, it will automatically enter the selected environment.
Install the module. (pip install pytube
)
Check: (pip show pytube
)
run: