PyChecker under python's virtualenv

Diez B. Roggisch deets at
Wed Feb 3 23:21:50 CET 2010

Am 03.02.10 22:46, schrieb soltys:
> Hi Everybody,
> I've been doing some test on pythons' virtualenv and recently I've
> decided to run PyChecker. But I'm having some difficulties with importing
> modules available only on virtualenv by pychecker. As if it was
> trying to use systemwide python.
> I've googled about it, and found nothing in this area.
> I installed pychecker using python install
> from virtualenv. I looked at pychecker script - it uses correct python.

I doubt that it uses the "correct python", because then you wouldn't 
have the problems you have.

I don't use pychecker, but pylint. And there, the system-wide command 
uses the system's python - which of course doesn't know anything about 

There are two solutions to this problem:

  - install py(lint|checker) into your virtualenv.
  - write a wrapper-script that invokes py(lint|checker) with an adapted 
PYTHONPATH environtment variable, based on the venv's sys.path. I do 
that for my epylint-wrapper for emacs. Works flawlessly.


More information about the Python-list mailing list