ImportError: No module named scipy

1,010 views
Skip to first unread message

Vikram Dalal

unread,
Jul 10, 2017, 6:01:13 AM7/10/17
to g_mmpbsa Mailing List
Hi,


I have to find Average Binding Energy Calculation.

python MmPbSaStat.py -m energy_MM.xvg -p polar.xvg -a apolar.xvg

I have copied the MmPbSaStat.py from the tutorial.

I got this error:-

Traceback (most recent call last):
File "MmPbSaStat.py", line 40, in <module>
from scipy import stats
ImportError: No module named scipy

Although I have checked the scipy in my centos 7 by this command.
python -c "import scipy; print(scipy.__version__)"
I got this:- 0.19.1

When i have checked the pip version by "pip --version"
I got this:-

pip 9.0.1 from /opt/rh/rh-python35/root/usr/lib/python3.5/site-packages (python 3.5).



I have updated python, pip and scipy. Then why i am getting the error of no module named scipy.

I will be very obliged to you.


Nikhil Maroli

unread,
Jul 10, 2017, 6:38:39 AM7/10/17
to g_mm...@googlegroups.com
sudo apt-get install python-scipy

g_mmpbsa Mailing List

unread,
Jul 10, 2017, 6:42:07 AM7/10/17
to g_mmpbsa Mailing List

It means that the Python version you are using to run MmPbSaStat.py script does not have scipy module. It seems that you have installed scipy for other Python version and tried to run script using another Python. Please use same Python for which you have installed the scipy or any other modules. 
Reply all
Reply to author
Forward
0 new messages