问题
I can setup a working PYTHONPATH using project properties, but it seems like after every reboot, I have to manually reset it. Is there a good way to persist the PYTHONPATH associated with a project?
回答1:
When you set the PYTHONPATH for a project, pydev will create a .pydevproject file in the root of your project. Make sure that file is being properly written (it could be that your project is read-only or something like that which could prevent PyDev from writing that file where the settings are persisted).
If that's not your case, please take a look if there's something reported in your error log.
回答2:
Maybe instead of tweaking your project properties, you should try to change your pydev's settings. I found this tutorial.Take a look at no 3 .
Hope it helps.
回答3:
Then you create new pydev project you can select option like "Add project to your python path". If you want you can customize python's intepreter and associated libs.
来源:https://stackoverflow.com/questions/9249995/how-to-persist-pythonpath-setting-of-an-eclipse-pydev-project