0
How do I import modules in python
I want to import pytube in the code playground some how is not working.
9 Answers
+ 3
Solomoni Railoa
Oh thanks so much.
So I suggest he use Pycharm or Vs Code.
+ 2
Solomoni Railoa thank you for your answer.
+ 1
your first line of code must be
import pytube as pt
that's how you import pytube in your python code.
+ 1
Install pycharm or visual studio
The open you windows command prompt and install the module you want
If you have no laptop or PC
You can install pydroid it's an Android application it provide terminal for you
Just python -m pip install 'module_name'
0
You can use external modules in SoloLearn virtual env. You have to install them with pip via os module to avoid typing in terminal.
import os
os.system('pip install pytube --quiet')
import pytube
0
Š”ŠŗŠ°ŃŠøŠ²Š°ŠµŃŃ pip.py, Š²Š²Š¾Š“ŠøŃŃ Š² ŠŗŠ¾Š¼Š°Š½Š“ŃŃ ŃŃŃŠ¾ŠŗŃ get-pip.py, Š·Š°ŃŠµŠ¼ pip install Šø ŠøŠ¼Ń Š¼Š¾Š“ŃŠ»Ń