Eclipse: PyDev installation difficulties - python

I'm having difficulty getting PyDev to work.
I had an installation of Eclipse for PHP developers (1.2.1.20090918-0703). A month ago, I installed PyDev, and everything worked great. I go to fire it up this morning, and PyDev is gone. There is no option to create a Python project, the Python language editor is missing, etc.
Eclipse for PHP does not say that PyDev is installed, so I grab it from the update URL. The version that comes down is 1.5.6. I restart after the installation, and everything works fine again. Sweet.
Then, I grab Subclipse 1.0.7. Upon restarting after that installation, PyDev is now gone. It isn't recognizing Python projects or Python files, etc. So I uninstall Subclipse. PyDev is still gone. Uninstalling and reinstalling PyDev again doesn't bring it back.
What am I doing wrong? Do I need a different version of Eclipse?
UPDATE: I downloaded a fresh copy of Eclipse for Java, did all this over again, and had PyDev working fine. Then, when I downloaded JSEclipse, PyDev again disappeared. This is super frustrating.
UPDATE 2: Another fresh copy of Eclipse. This time I downloaded Subclipse first. It worked fine. Then I downloaded JSEclipse, and Subclipse is gone.

there's an easy way to install plugin for eclipse, download the pydev package zip file (not install it via eclipse update), extract it, and put it into your eclipse/dropins/pydev folder.
this is a hidden way to install plugin.

Related

problem with pycharm interperter and installing packages

I have a problem with installing packages in my pycharm project.
Until today everything worked perfectly, I could install packages and everything worked.
I didn't change anything but now everytime I try to install new package I get an error
pycharm message 1
pycharm message 2
But I do have pip installed in python interpreter
interpreter packages
I'm trying to understand what is the problem and how to fix it.
I'm not sure if this is the problem, but the interpreter is python 3.7 and the weird thing is when I'm checking the version on my cmd it's 3.8.3 but when I checked on Windows's apps it showed python 3.7.3
python version from cmd
Is there a reason it happened just randomly after it worked perfectly in the last couple of weeks I worked on the program?
Maybe it's because i updated the pip?
You can try few things
Running same command in terminal. If it doesn't work then please locate your pip.exe which is generally in the Scripts folder right next to python.exe. Make sure the path/to/folder is in environment variables
Reset project settings. Try deleting .idea directory in your project. This folder is created by pycharm to save settings. Open the project folder again in pycharm and set the interpreter.
Did you try to install directly with pip in the terminal ? If it doesn't work maybe you should reinstall it

No menu for adding WSL python interpreter in PyCharm

I was following this guide from official jetbrains page, until the step 2 comes in the existence.
In the picture mentioned in that page, has so many options like ssh, wsl, vagrant, docker, etc. In my pycharm (latest 2019.3.4) it only shows 4 options - venv, conda, pipenv and system-interpreter.
There is no WSL menu in the add python interpreter dialog.
See the below image:
Searched web for an hour and found no results that show how to fix it. I started plugin search in the PyCharm if there's an external plugin to do so, but there were no plugin named as WSL.
I don't know how to setup the WSL interpreter, I have python3.8 installed on my wsl right now.
Any help will be appreciated!
I have solved this by
Uninstalling pycharm with history and cache.
Removing folders completely from C:\Users\%USERNAME%\AppData\Local and C:\Users\%USERNAME%\AppData\Roaming\JetBrains and
Clean re-install of pycharm
WSL interpreter option shows up as normal
Ideavim is creating a conflict I guess.
This helped me without having to reinstall PyCharm. In PyCharm go to
File, Manage IDE Settings, Restore Default Settings.
I think PyCharm was unable to find my WSL after I updated my WSL's Ubuntu 20.04 to Ubuntu 22.04 and changed the name. (Maybe this issue wouldn't have come up if I had kept the name "Ubuntu-20.04".)

eclipse pydev: unable to create pydev project

I've successfully installed pydev into eclipse:
Anyway, I'm unable to use my existing python sources to create a pydev project. When I click File > New > Project, there's no pydev
What can I do to create new pydev project?
After some investigation I've found that version of JDK was wrong. I must have installed jdk6 first, then eclipse, then install jdk7 and then installed pydev. My default jdk was 6 (this can be changed, as stated here). When eclipse is fired from jdk6, it will never see pydev. When I run eclipse manually under jdk7, pydev appeared :)
./eclipse -vm /usr/lib/jvm/java-1.7.0-openjdk-i386/bin/java
so make sure you use jdk7 to run eclipse and it should be fine.

Adding PyDev to Eclipse using the PyDev zip

I'm having a lot of trouble getting Eclipse to recognise PyDev when using the PyDev zip file. (I need to use the zip file as the Dev machine does not have internet access).
I have Eclipse installed and have downloaded the PyDev zip. I've Googled a fair bit and tried the following based on suggestions I found:-
Unzipped the .zip into ECLIPSE/helios/dropins and restarted eclipse.
Unzipped the .zip into ECLIPSE/helios/plugins and restarted eclipse.
Neither makes Python appear as a selection in the Eclipse, Window, Preferences.
Helios contains the executable eclipse file I use to load eclipse.
I'm using eclipse in Redhat linux.
One suggestion was to extract the zip over the eclipse plugins and features folders, but I don't see how that would work as the zip just produces a heap of files and no folders.
Any help to get this working would be great.
Just unzipping the Pydev zip file under C:\eclipse\dropins should be enough. So:
1) Unzip the zip file in C:\eclipse\dropins
2) Launch Eclipse
3) Test your installation: Go to Window -> Preferences -> PyDev
I just did this today and a far easier way to do it is to use the built-in installer. Go to Help -> Install New Software and then type pydev in the software filter. Since you already have the zip, if you extract it in the dropins folder, you'll skip the download portion and go straight to installing it.
I have been able to use the zip to install it manually before. I would extract its contents in the eclipse folder overwriting the features and plugins folder. I suggested this to a coworker earlier today and it didn't work for her. She had to download the newest version of eclipse for this method to work. She downloaded the classic version.
I've been playing with PyDev and Eclipse. Reinstalled Eclipse on a fresh machine and unzipped the standard PyDev over it (not the source version) and it worked fine. Did the same thing on the same machine having the problems but in a different location (/home) also worked fine. So it looks like a configuration problem on the machine not a PyDev/Eclipse issue. Sorry for the run around and thanks for the help. Dog.
For whatever it's worth, I was having the same problem running eclipse 3.6 on RHEL 6. When I ran eclipse as myself, I didn't get any PyDev options; however, when I ran eclipse as root, everything showed up. So permissions could be an issue fyi.
Open the eclipse and navigate in the below format of the menu bar of the eclispe
Window > Perspective > Open Perspective and select Pydev. As a result when next time you open eclipse you will be using it with python.Please follow the below screen shot in the link I am Using python 3.7 with eclipse photon ide.
Eclispe with Python

How to configure Eclipse for PyDev? Python doesn't appear in Preferences window

I'm trying to install PyDev in Eclipse 3.6 on Windows 7.
I have Python 2.7 successfully installed. I installed PyDev through Eclipse, and restarted.
When attempting to configure Eclipse to find my installed Python, (Window -> Preferences) the list that appears does not contain Python. (See image below.)
If I go back to Help -> Install New Software to check what has been installed, PyDev appears as having been installed.
I've tried quitting Eclipse and opening again, with no change. I tried uninstalling PyDev, and re-installing, with no effect. Any ideas how to get Eclipse to see PyDev?
There's an issue when installing plugins under Windows 7 with UAC (User Access Control) active. You need to run as administrator. Read my blog post for more details.
I had the same issue with interpreters not seen for pydev/python.
I followed the link1 below, I had to use the PyDev 3.2.0.zip file and install it with 7zip in the dropin folder, for my system it is:
"eclipse-SDK-3.5.2-win32-x86_64__classicversion\eclipse\dropins" folder. (if you just right click to unzip (not using 7zip) in the dropins folder, you get the 0x80010135 Path too long error).
Then I had to reboot my windows 7 64bit pc to see the pydev/python interpreters.
Then follow link2 and watch derek banas python online videos where he goes over the installs and tutorials.
link1: http://pydev.org/manual_101_install.html
then at the bottom of the page select
http://pydev.org/manual_101_interpreter.html
Note: I also had to use the unzip trick for other eclipse updates ...

Categories