Adding python modules to pydev in eclipse results in import error?

前端 未结 11 2106
难免孤独
难免孤独 2020-12-14 03:01

I have a problem getting PyDev on eclipse to recognize already installed modules. Here is my detailed approach. The machine is a Mac (Snow Leopard).

In terminal the

11条回答
  •  暖寄归人
    2020-12-14 03:31

    @Aufwind your answer above helped but didn't solve for me.

    • Find the path to the folder ../site-packages/ ....
    • Open eclipse preferences and go to PyDev -> Interpreter - Python.
    • On the left side of the lower box, click on New Folder. ---> here I departed from your instructions. I added the egg for the module that wasn't being recognized. Adding the site-packages folder didn't fix it.
    • Hit open.
    • Hit Apply.
    • Hit Ok.

    And then I was good to go. =)

提交回复
热议问题