Re: [Pydev-users] Setting up Eclipse pydev django development environment
Brought to you by:
fabioz
From: Gary R. <gar...@ve...> - 2016-06-07 02:09:21
|
Hi all, I am still fighting this problem. I have installed Eclipse Neon because my version of Debian uses java 8. I have then installed the PyDev plugin. I also installed a terminal emulator plugin. Selecting windows>Preferences>PyDev>Interpereters>Python Interpereters, I used New to create python3.5sys to attach the systems usr/bin and usr/lib python files to Eclipse. At this point Eclipse works. Although the python version selected in the setup is supposed to be python 3.5 (the systems version), running python --version in the Eclipse Terminal returns python version 2.7.11 and django 1.9.6. The preferences, python Interpreter page shows /usr/bin/python3.5 interpreter selected resulting in the following libraries: /usr/bin/python3.5 /usr/lib/python3.5/plat-x86_64-linux-gnu /usr/lib/python3.5/lib-dynload /usr/local/libpython3.5/dist-packages /usr/lib/python3/dist-packages Does anyone have an idea as to why the wrong versions of python and django show up. Gary R. On 05/09/2016 03:50 AM, Fabio Zadrozny wrote: > Hi Gary, > > There are some ways you can setup things in your use case... > > So, first, I'll explain a bit on the concepts related to then provide > the possible solutions: > > Workspaces: Eclipse itself provides the concept of workspaces, so, > each workspace is completely independent from another (i.e.: > projects/configurations from one workspace are usually not visible to > another workspace). > > Python Interpreter: PyDev can have multiple interpreters configured. > You can think of each interpreter as a virtualenv, where the > configuration of one is independent of the other (if you use > virtualenvs, you should usually configure an interpreter for each > virtualenv). > > Project: This is the place where your own source code should reside. > Each folder marked as a source folder will be set as an entry in the > PYTHONPATH (see http://www.pydev.org/manual_101_project_conf2.html). > > As you said that you don't want things to be tied to system changes, > you should download a python install from python.org > <http://python.org> and keep it independent from the computer > installation (I must say I usually use miniconda to create multiple > python installations that are independent from the system... you can > see more at: http://conda.pydata.org/docs/). > > As to how to map things internally, you can: > > 1. create a new workspace for each python/virtualenv/conda env you > have installed (and then all the projects/interpreters will be > separate -- and when launching Eclipse/PyDev, you should select with > which one you want to work -- if you want to work with multiple at the > same time you have to launch multiple instances... if you go that > route, in preferences > general > workspace you can set a workspace > name to be shown in the title to help you know which one you're > working with). > > 2. Create a single workspace, configuring the multiple interpreters > you have in preferences > PyDev > Interpreters > Python interpreter > and then, for each project you have, go to the project properties > (alt+enter with project selected) > PyDev - Interpreter/Grammar and > select which interpreter that project should use. > > To know how to deal with existing code, there's an entry in the FAQ > related to it: > http://www.pydev.org/faq.html#PyDevFAQ-HowdoIimportexistingprojects%2FsourcesintoPyDev%3F > > Cheers, > > Fabio > > > On Sat, May 7, 2016 at 7:12 PM, Gary Roach <gar...@ve... > <mailto:gar...@ve...>> wrote: > > Hi > > I need assistance in setting up my development environment an have > gotten no response from the Eclipselink-users-request list. I hope > that > someone on this list can be of assistance. > > I am running Debian stretch OS (Ubuntu is Debian for all practical > purposes) with an Xwindows KDE desktop. I have a couple of > projects that > require both Python 2.7 and others that requre 3.x, I will be using > Django 1.7, 1.8 and 1.9 as needed. Each project must be completely > separate from the other pojects and must not use global libraries. In > short each project must be atomic. All projects use a common > postgresql > database or the Django default and may have to share an Apache > server. I > should be able to delete a project with out effecting the others. > Updates to software by the Debian apt-get method should not effect the > projects. It would be nice if I could port older projects over to the > new setup. > > I have been using another IDE but the IDE suffers from lack of > development. With that one I used vertualenv or Python3-venv to > set up > virtual environments for each. I have attempted to set up a similar > thing with Eclipse and have had all kinds of conflicts. The bottom > line > is that I have no idea what I am doing. I need a road map, preferably > not requiring a lot of extra code, to set things up. > > All help will be sincerely appreciated. > > Gary R. > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with > Applications Manager > Applications Manager provides deep performance insights into > multiple tiers of > your business applications. It resolves application problems > quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > <mailto:Pyd...@li...> > https://lists.sourceforge.net/lists/listinfo/pydev-users > > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users |