Setting default Python grammar version in Eclipse PyDev - eclipse

I have a fresh installation of Eclipse and PyDev, on a Mac that has Python 2.7 and Python 3.6 installed. Whenever I start a new PyDev project, it asks me to choose a grammar version, and 2.7 is the default. How can I change it so 3.6 is the default grammar?
In Eclipse preferences -> PyDev -> Interpreters -> Python Interpreter I only have Python 3.6 configured; where else should I look?

This is currently not implemented (albeit it really should use the current interpreter selected to define the default version, so, please report this in the pydev tracker: https://www.brainwy.com/tracker/PyDev)

Related

installing pandas in pydev eclipse neon 2

I have installed python 3.6.4 on my MAC OS and have Eclipse neon 2.0 running. I have added pydev plugin to work on python projects. I need to import pandas library, but there is no such option as windows -> preferences -> libraries
Can someone help me with any other way to install python libraries in neon 2.
And also how to run python cmds in terminal window in pydev?
Thanks!
The best way to install something would be doing a pip install pandas. You can do this in the command line or in preferences > pydev > interpreters > python interpreter > install/uninstall with pip (button).
To use the interactive console in PyDev, follow the steps on: http://www.pydev.org/manual_adv_interactive_console.html
I faced same problem when working with eclipse pydev project.
here are steps that helped me resolve the issue
In eclipse open the workspace, click on Windows->Preferences->pydev-> interpreters-> python interpreter -> Click on Manage with PIP
In Command to execute , enter install pandas.
Problem solved

How to link Pycharm with elasticsearch-py

I have installed elasticsearch 2.3.3 on ubuntu 15.10. I am switching from intellij to Pycharm 2016.1.4. How can i configure pycharm such a way that use libraries such as elasticsearch-dsl?
Preference -> Project Interpreter, search 'elastic search'. Should pop up up as the 6th or so option.

Syntax errors for keywords in pydev plugin for Eclipse

I'm using the Pydev plugin for Eclipse Luna for Java EE.
The python code runs correctly, but errors are showing up for built in keywords like print.
Error: Undefined Variable: print
I looked on stackoverflow for other answers, and the suggestions have all been to manually configure an interpreter. I changed my interpreter to point at C:/python34/python.exe, but this has not fixed the problem. I also made sure that I was using grammar version 3.0.
Update: I think it might be a problem with aptana instead of pydev. I uninstalled aptana, and installed pydev without any issues. But when I tried to reinstall aptana, I can only do it by uninstalling pydev. I need a way to try a previous version of aptana or else a way to install aptana and pydev separately
It seems like Eclipse Luna does not provide support for PyDev when it's installed with Aptana. I was able to install Aptana without PyDev and do a separate install of Pydev on its own and this solved the problem.

Eclipse: no C/C++ option after installing CDT plugin

I use Eclipse to program in Java and , having already familiar with this development environment , I would use it for C/C++ projects.
Version: Eclipse SDK 4.2.2 (Juno)
O.S.: Ubuntu 12.04 LTS
I installed the CDT plugin by following the italian guide of the ubuntu documentation:
http://wiki.ubuntu-it.org/Programmazione/Eclipse#CDT
The only difference is that, at point 4, I have not included the source shown (Galileo), but the my version (Juno)
http://download.eclipse.org/tools/cdt/releases/juno
it's ok, found the source
CDT Main Features
CDT Optional Features
the installation is successful (indeed Eclipse show me CDT as the latest software installed, and an subsequent attempt to reinstall, Eclipse returns an error that it is already installed)
The problem is that when I restart Eclipse , I have no change. For instance , if I open the menu " File -> New -> Other" , I have no additional option to create a new C/C++ project.
I regularly installed on my computer the C/C++ compiler (gcc and g++ , version 4.6.3).
I also tried to install the plugin from the terminal:
sudo apt-get install eclipse-cdt
no change.
I search through the options in Eclipse to see if it was a problem enabling views of items in the menu, but nothing. Even in the "Window -> Preferences" I have no "C/C++" category .
I also changed my workspace ..... nothing .
Please help me, thanks
i had the same issue. i installed the latest eclipse, luna and mars. both had the c/c++ development tools.
my development environment had an older version of java installed, i.e. 1.6. apparently, luna/mars require 1.7 to be installed. i, at first, modified the eclipse.ini file to
-vmargs
-Dosgi.requiredJavaVersion=1.6
i started eclipse and the c/c++ project was not available. so i couldn't create a c/c++ project because it wasn't available in the wizard.
i updated my java to 1.7 on my machine; changed the eclipse.ini file back
-vmargs
-Dosgi.requiredJavaVersion=1.7
then started eclipse. viola. the option to create a c/c++ project is now available.
so basically, it seems that the newer eclipse requires 1.7 java. otherwise, it will disable features.
First of all, you have to open "C/C++ perspective". Try to go to menu "Window--Open Perspective -- Other--C/C++".
When you are in C/C++ perspective you should be able to create a new C/C++ project.
Also if you already have a loaded project, you can to convert to C++ project. Simply select it and then follow the right-click menu: "New" -- "Convert to a C/C++ Project (Adds C/C++ Nature)". Alternatively, simply go to menu File--New--Convert to C/C++ Project and it will show the list of all projects.
But again, the first and major step is to switch to C/C++ perspective.
Good luck!

The PyDev plugin can not find python 3.4

I have been using eclipse 3.8+PyDev+python 3.3 on ubuntu 13. Recently I upgraded ubuntu to 14.04. It seems that ubuntu 14.04 comes with new python 3.4, so, during upgrading, the old python 3.3 is removed and new python 3.4 is installed. Then, the PyDev plugin of my eclipse can not find the python 3.3 in its original dir and an error is report, as well as many red crossings, as the image below shows.
But the installation of Python 3.4 is correct because I can import pickle or random modules without difficulty in IDLE which uses python 3.4:
I have already upgraded the PyDev to latest 3.4.1. Could you please tell me how to reconfigure Python interpreter (including how to locate it) in eclipse so that PyDev can correctly locate where the Python 3.4 is? Thank you very much.
OK, I have solved the problem by myself:
(1)Right click the project name, choose "Properties" in the popup menu. This will open the "Properties for" dialog box.
(2) In this box, select "PyDev-Interpreter/Grammar" item on the left panel and click the "click here to configure an interpreter not listed" link on the right.
(3) In the popup "Python Interpreters" dialog box, click "New..." button on the right of the window and type in the path to python 3.4 executable. In my system, it's /usr/bin/python3.4.
(4) Then click OK and wait for the eclipse to finish its configuration work. At this point the most important part of reconfiguration is done. Then move the new Python3.4 to the top, remove python 3.3 interpreter if you want, and ...
(5) Don't forget to restart eclipse. Tata ...
Some 3rd party python packages such as pymongo are still problematic. But they are not within the scope of discussion of this thread. That's it.