Home > database >  No module named "module"
No module named "module"

Time:02-14

I am new to python and I am running Linux. None of my programs will work because VS Code will say that "No module named" I have installed them in the command line and in the terminal in VS Code. They say "requirement already satisfied". Then I will run the program and I get the same "No module named" error.

CodePudding user response:

You need to import the modules required for your program. Write on top of your program - import [YourModuleNsme]. Make sure you are using the correct spelling for the module you are importing.

CodePudding user response:

Did you import it. Like

import pandas as pd

Try pip freeze to see if your module is present there.

If you are learning I suggest you to try Anaconda Jupyter Notebook. Or IDE Pycharm community version. These I personally find it simple.

CodePudding user response:

you have to import the library

for example:

If I need pandas library or numpy I will do

import pandas
import numpy

if I want to use aliasing then

import pandas as pd
import numpy as np

Hope this helps

  • Related