0

So I just created a new virtual environment and linked it to a project in LiClipse by setting the interpreter as standard interpreter for the project. The only problem is, that packages installed to the site-packages folder by pip don't seem to be recognized by LiClipse. Is there a step I might have forgotten? I followed this tutorial

The packages are there in the folder, I used source activate before using pip to install the packages.

The folder structure currently looks like this

Project
    - src
    - lib
    - bin
    - local
    - share
    - include 
vicco
  • 1,049
  • 2
  • 14
  • 33
  • What happens when you run the python interpreter for that virtualenv and try to import one of your site-packages? – disflux Jan 12 '16 at 13:57
  • It works that way, that's why I'm wondering. – vicco Jan 12 '16 at 13:58
  • 1
    According to the tutorial you linked to, you should just need to rescan the interpreter. That was bullet point #8. Did you try that? – disflux Jan 12 '16 at 14:10
  • Yes, I did - at least I thought so. Apparently I didn't because now it works. – vicco Jan 12 '16 at 14:14

1 Answers1

1

The issue was caused by PyDev needing to rescan the interpreter to register the site-packages.

OP needed to rescan by going to Preferences -> PyDev -> Interpreter - Python Interpreters and re-applying the appropriate Interpreter.

disflux
  • 429
  • 3
  • 12