r/pythonhelp • u/FlexDormGamer • Jul 24 '25
[HSLP] not able to import module
I am trying to import module like pandas,and matplotlib but it's not working. Even in IDLE it shows syntax erroor.
FYI I have installed python in a different drive other than main drive I.e. not local drive C. How can I import the modules?? And also not working
0
Upvotes
1
u/FoolsSeldom Jul 24 '25
That depends on:
how you installed Python
what, if any, virtual environment(s) you set up
how you launched IDLE
Assuming:
You are on Windows
Installed Python using the installer from python.org
Installed the packages you wanted by:
opening a Powershell or CommandPrompt window
installed packages using
py -m pip install package1 package2 ...Launched IDLE from the Windows START option / icon
Then it should work.
NB. If you are on macOS, would you use
Terminaland azshshell and enteredpython3 -m pip install package1 package2 ...