Peewee
Peewee

Reputation: 33

How come I can import a python library in the shell but not in PyDev?

I'm trying to use the mdb library. I installed it with apt-get (python-mdb), and I can use it fine in the shell. But I can't get my code to run with it inside PyDev. In both cases I'm using python2.6.

Upvotes: 0

Views: 359

Answers (1)

Tao
Tao

Reputation: 407

You have to specify mdb library in your Pydev Python Interpreters's PYTHONPATH.

Go to Windows -> Preference -> Pydev -> Interpreters - Python

Under the library tab, add your mdb library path.

Upvotes: 1

Related Questions