Most efficient way of setting up a project Pydev PYTHONPATH in Eclipse (Helios)?

后端 未结 3 1367
名媛妹妹
名媛妹妹 2020-12-20 14:33

I want to add all folders in my Pydev project to PYTHONPATH so that I can reap the benefits of easily seeing unused imports etc. To do this I seemingly have to add all folde

3条回答
  •  春和景丽
    2020-12-20 14:51

    Check this out, this worked for me.

    1. if you get an error “unresolved import: pydevd” try saving the file ‘manage.py’ first. the error should go away.

    2. If the error persists: you need to make sure pydev is in your PYTHONPATH. a) Go to Eclipse>Preferences>PyDev>Python Interpreter: b) Click New Folder> (mac)”/Applications/Eclipse/plugins/org.python.pydev_x.x.x.x/pysrc”

    c) Click “Apply” This adds the folder that contains pydevd.py to your PYTHONPATH. Eclipse automatically adds that to your project’s Python Library. This should resolve the problem and you can run it now.

    https://djangounchain.files.wordpress.com/2012/12/screen-shot-2013-01-06-at-3-49-02-pm.png

提交回复
热议问题