简体   繁体   中英

How to persist PYTHONPATH setting of an Eclipse Pydev project?

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?

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM