Ask Your Question
0

ModuleNotFoundError: No module named 'pandas'

asked 2023-05-16 02:40:14 -0500

OKO gravatar image

updated 2023-05-26 07:56:30 -0500

I'm trying to run a python script in PSS@E 35, but when I try to run it I get this message: "ModuleNotFoundError: No module named 'pandas' ". I have installed the pandas package through anacond and are able to run the script in spyder IDE, but when I try to run the same script in the PSSE software it seems it can't find the pandas package. Anyone have any idea what I'm might be doing wrong?

Edit: Found out the problem. Had download Python twice, once through Anaconda and once through the PSSE installation process. Had "pip installed" the pandas only throught the Python that was install through Anaconda, which was not connected with PSSE. So just had to find the Python version that was connected to PSSE and install pandas there and then it worked.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-05-17 07:00:53 -0500

Alex P gravatar image

updated 2023-05-17 07:01:52 -0500

This is most reliable way that I've found to install python modules:

  1. open a command prompt with admin privileges
  2. change to the scripts folder (where pip.exe is) inside the main folder of the python version you want to install the module for, e.g.
    C:\Python27\Scripts

  3. install the module using pip:
    pip install pandas

Done.
In my experience this is best way to ensure that the module will be found when trying to import. It also avoids conflicts between 32 bit and 64 bit versions when they are installed in the user profile folder.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2023-05-16 02:40:14 -0500

Seen: 1,290 times

Last updated: May 26 '23