Hi, I have downloaded pandas in cmd it is showing it is downloaded but in python it is show error

here command prompt message:
C:\Windows\System32>pip install pandas
Requirement already satisfied: pandas in c:\users\mayur\dropbox\pc\desktop\ruchi\ip praticals\python\lib\lib\site-packages (2.2.1)
Requirement already satisfied: numpy<2,>=1.26.0 in c:\users\mayur\dropbox\pc\desktop\ruchi\ip praticals\python\lib\lib\site-packages (from pandas) (1.26.4)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\mayur\dropbox\pc\desktop\ruchi\ip praticals\python\lib\lib\site-packages (from pandas) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in c:\users\mayur\dropbox\pc\desktop\ruchi\ip praticals\python\lib\lib\site-packages (from pandas) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in c:\users\mayur\dropbox\pc\desktop\ruchi\ip praticals\python\lib\lib\site-packages (from pandas) (2024.1)
Requirement already satisfied: six>=1.5 in c:\users\mayur\dropbox\pc\desktop\ruchi\ip praticals\python\lib\lib\site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)

here is python’s response:
import pandas
Traceback (most recent call last):
File “<pyshell#0>”, line 1, in
import pandas
ModuleNotFoundError: No module named ‘pandas’

PLEASE HELP ME

How are you starting python?

i am using python idle like how normally it opens

Most likely, Idle is installed in a different environment than where you installed pandas. If you start python from the command line (by running python in CMD), can import pandas from there?

Pip is using a Python that is somehow installed inside your Dropbox folder. This is probably not a good place to install Python. It’s also not the Python that IDLE is using.

If you installed Python separately, exactly what steps did you take in order to do this?

When you run IDLE, exactly what steps do you take to start it?

If you run IDLE and use import sys; print(sys.executable) in the IDLE Shell, what result do you get?

What result do you get from where pip at the command line?

1 Like

if i type in idle it shows:
C:\Users\mayur\AppData\Local\Programs\Python\Python311\pythonw.exe

and if i type in cmd it shows:
C:\Users\mayur\Dropbox\PC\Desktop\Ruchi\IP Praticals\Python\Lib\Scripts\pip.exe
C:\Users\mayur\AppData\Local\Programs\Python\Python311\Scripts\pip.exe