Ask Your Question
0

ModuleNotFoundError: No module named 'pandas'

asked May 16 '3

OKO gravatar image

updated May 26 '3

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.

1 answer

Sort by » oldest newest most voted
0

answered May 17 '3

Alex P gravatar image

updated May 17 '3

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.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: May 16 '3

Seen: 1,691 times

Last updated: May 26 '23