ImportError Python Reportlab

2
Hello, I'm trying to import the following lib into my Python 2.7 project:

from reportlab.lib.rparsexml import simpleparse

Error:

  

ImportError: No module named reportlab.lib.rparsexml

I have tried to install python-reportlab :

  

python-reportlab is already the newest version.

Note: I'm using virtualenv .

    
asked by anonymous 05.03.2015 / 20:24

1 answer

1

Normally this type of error happens when using a different Python than the Python in which the lib was installed.

Since you are using virtualenv , make sure your project's virtualenv is enabled before installing the lib. When you run your project, also confirm that it will run with virtualenv's Python.

    
06.03.2015 / 15:26