I'm having trouble importing pylab and I hope someone can help me. The error
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Linda>cd desktop\python
C:\Documents and Settings\Linda\Desktop\python>python readdata.py
Traceback (most recent call last):
File "readdata.py", line 1, in <module>
File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Python25\Lib\site-packages\matplotlib\__init__.py", line 127, in
import sys, os, tempfile
File "C:\python25\lib\tempfile.py", line 33, in <module>
from random import Random as _Random
ImportError: cannot import name Random
C:\Documents and Settings\Linda\Desktop\python>python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.
As you can see, I'm using 2.5. The matploblib module that I downloaded was
from sourceforge.net, as was the python 2.5. readdata.py, the program that
gave this error message, is:
with nothing else but comments. The strange thing is this was working
before, and it suddenly stopped working, with the same version and
What is the problem?