
On 08/22/2011 02:52 AM, 刘吉元 wrote: > I installed epd-7.1-1-rh5-x86_64 which included pylab in RHEL5.7 64 bit > system,When I run 'python plot_profiles.py',I got the error: > "Traceback (most recent call last): > File "plot_profiles.py", line 1, in ? > import pylab > ImportError: No module named pylab" This is a Python problem - nothing to do with Modeller. Given that you can import pylab in a different Python session, my suspicion is that you have two versions of Python on your system, and you're running the wrong one here. RHEL5 ships with Python 2.4, as /usr/bin/python, but > FILE > /usr/local/epd/lib/python2.7/site-packages/matplotlib/pylab.py suggests that you also have a copy of Python 2.7 installed. If you want to run a Modeller script which uses pylab, you'll need to use that Python 2.7, not Python 2.4. Ben Webb, Modeller Caretaker -- modeller-care@salilab.org http://www.salilab.org/modeller/ Modeller mail list: http://salilab.org/mailman/listinfo/modeller_usage
participants (2)
-
Modeller Caretaker
-
刘吉元