How to persist PYTHONPATH setting of an Eclipse Pydev project?

折月煮酒 提交于 2019-12-17 16:47:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!