Monday, March 19, 2012

No module named numpy when executing alpspython on CentOS 5

I was using testing out alps-2.0.2 on CentOS 5.4 .When I typed the following:

$ /usr/local/alps2.0.2/bin/alpspython

$ import pyalps

I got this error instead

Traceback (most recent call last):

  File "", line 1, in ?
  File "/usr/local/alps-2.0.2/lib/pyalps/", line 37, in ?
    from dataset import *
  File "/usr/local/alps-2.0.2/lib/pyalps/", line 29, in ?
    import numpy as np
ImportError: No module named numpy

The resolution was easier than I thought, just do a
# yum install python-numpy
The respective libraries will be installed

No comments: