- Note for users with LiClipse
- Requisites
- Need to use older Eclipse/Java/Python
- Before starting the install
- PyDev Certificate
- Installing with the update site
- Installing with the zip file
- Checking the installation
- Troubleshooting installation problems
- Unable to load repository
- Possible issue on download
- PyDev does not appear after install!
- Java 8 requisite
- Corrupted install
- Uninstalling
- PyDev development
- Настройка интерпретатора Pydev в Eclipse для использования дистрибутива Python Enthought
- 7 ответов
- Перспектива Pydev Не Отображается После Установки Для Eclipse
- 17 ответов
Note for users with LiClipse
PyDev already comes preinstalled in LiClipse, so, this step can be skipped (note that if LiClipse is used, PyDev cannot be installed or update separately, as it must always be updated as a whole).
Requisites
PyDev requires Java 8 and Eclipse 4.6 (Neon) in order to run and only supports Python 2.6 onwards. I.e.:
If you don’t have Java 8, the update process may appear to succeed, but PyDev will simply not show in the target installation. Please double-check if you’re using a Java 8 vm in about > installation details > configuration before trying to install PyDev.
Need to use older Eclipse/Java/Python
If you need to use an older version of Eclipse/Java/Python, below is the latest PyDev version to be used based on your requisites.
Before starting the install
The first thing to choose before the install is a folder where you have permissions to write (otherwise, remember to install Eclipse running as an Administrator and remember to run as an Administrator whenever any plugin needs to be updated).
PyDev Certificate
From version 5.9.0 onwards, PyDev is built with a certificate in the name of «Brainwy Software Ltda» (previously it used a self-signed certificate).
Installing with the update site
Note: Instructions are targeted at Eclipse 4.6 onwards
To install PyDev and PyDev Extensions using the Eclipse Update Manager, you need to use the Help > Install New Software. menu.
In the next screen, add the update site(s) you want to work with from the list below:
Browse other versions (open in browser to select URL for Eclipse):
and press so that Eclipse will query the update site you just entered for contents.
Before proceeding, it’s recommended that you UNCHECK the ‘Contact all update sites during install to find required software’ (it will still work if you don’t do that, but it’ll query all the update sites available, which is much slower than querying only the PyDev update site, which should be all that’s needed to install PyDev).
Now, select PyDev for Eclipse to install PyDev (and optionally the PyDev Mylyn integration or the developer resources, which provide the PyDev source code) and click Next.
Now, read the license agreement and if you accept, select the accept radio button and click Finish.
At that point, Eclipse should automatically download the plugin contents and present you to a dialog asking if you want to restart (to which you should say yes).
Installing with the zip file
The available locations for the zip files are:
After downloading the zip file:
Extract the contents of the zip file in the eclipse/dropins folder and restart Eclipse.
If it doesn’t work, try restarting Eclipse with the -clean flag (if you’re a regular user and installing with admin, make sure you call -clean logged in as admin, so that Eclipse finds out about it).
If it’s still not found, double check the requisites (such as the Java vm version).
Checking the installation
You can verify if it is correctly installed going to the menu ‘window > preferences’ and checking if there is a PyDev item under that.
Troubleshooting installation problems
Unable to load repository
While most times things work as explained, some users may have messages such as:
Unable to load the repository http://pydev.org/updates
This means there’s some issue accessing the update site in your current connection.
In that case, you can try using a direct URL for the download (all the http://pydev.org/updates/ URLs are actually redirects to the final location). Currently, those redirects point to links on http://bintray.com, so, you can visit the related update site page (such as http://pydev.org/updates) in a browser and see to where it’s being redirected (you may want to try that direct link with http or https to see if it makes a difference in your use case).
Possible issue on download
If you have any problem at this point with a message such as:
An error occurred while collecting items to be installed No repository found containing: org.python.pydev/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.ast/osgi.bundle/1.4.7.2843
that might indicate that the mirror you selected is having some network problem at that time, so, please retry it later on (possibly with a direct URL such as in the Unable to load repository tip above).
PyDev does not appear after install!
Well, the main issue at this time is that PyDev requires Java 8 in order to run.
Tip: LiClipse (which is mostly a PyDev standalone plus some goodies) is pre-configured so that none of the hassle of installing PyDev into Eclipse nor any pre-requisite is needed 😉
Java 8 requisite
If you don’t have Java 8, make sure you download/install the latest Java 8 JRE or JDK, try restarting to see if it got it automatically.
I.e.: in help > about > installation details > configuration check if it’s actually using the Java 8 version you pointed at.
If it didn’t get it automatically, follow the instructions from:
Corrupted install
Eclipse sometimes is not able to correctly get the plugin, from the update site but will do no checking on whether it is really correct (no md5 checking), and when this happens, you’ll usually get a ClassNotFoundException (similar to the example below).
When that happens, you should uninstall it and reinstall again with the update site. if that still fails, you could try to get the zip files, as it will at least give you a warning when it is corrupt.
Note that the chance of the files being corrupt in the server is pretty low, as that’s something that’s always checked in a new release, but if you’re suspicious about it, please report it at https://www.brainwy.com/tracker/PyDev so that it can be double-checked.
Also, there have been reports with that error where the only solution that has been consistent has been removing all previous versions of PyDev and then installing the latest version.
EXAMPLE
Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates that the editor’s class name was mistyped in plugin.xml.
Uninstalling
Follow the instructons below if at any time you wish to stop using the PyDev plugin (or any other Eclipse plugin):
Eclipse 3.5 onwards
If you installed with the update site, go to the menu help > about > installation details then on the Installed Software tab, select the plugins you want to uninstall and click Uninstall.
If you installed with the zip file, just remove the com.python.pydev and org.python.pydev features and plugins from the dropins folder.
PyDev development
PyDev is open source and depends on your contributions! This may be in the form of bug fixes, answers on stackoverflow, new features.
Or through 1-time contributions at:
Paypal
Search PyDev-related content
Copyright: Brainwy Software Ltda, 2014-2020
Источник
Настройка интерпретатора Pydev в Eclipse для использования дистрибутива Python Enthought
Я загрузил плагин Pydev для Eclipse (3.5.2) сегодня на Mac OSX 10.5.8. Чтобы иметь возможность использовать Pydev, мне нужно настроить интерпретатор в Eclipse. Я не совсем понимаю, что именно мне нужно здесь делать, или что делает этот шаг. Я хочу убедиться, что при запуске программ из Eclipse с помощью Pydev он использует установленный мной дистрибутив Enthought Python (EPD) и может использовать все пакеты, которые поставляются с EPD. Может кто-нибудь, пожалуйста, скажите мне простые шаги, которые мне нужно выполнить.
Если Я нажмите на autoconfig, он показывает кучу папок с путем
/ Система / Библиотека / Фреймворки / Python.Framework / Версии / 2.5/.
Спасибо за любую помощь.
Если кто-то еще заинтересован в том, чтобы узнать, как это сделать, см. первую ссылку в ответе mlvljr ниже. Использовать решение там за исключением того, что, как было предложено в решении, Shift+Cmd+G, не помог мне увидеть внутри Python.пакет приложений. Чтобы заглянуть внутрь, используйте выпадающее меню» шестеренка «в Finder и выберите» Показать содержимое пакета»
7 ответов
по крайней мере, в Windows это кажется выполнимым через:
из дистрибутива Python Enthought Readme.txt ( EPD.mkpg/Contents/Resources/Readme.txt на epd-6.1-1-macosx-i386.dmg EPD disk 32-битный образ диска MacOS):
Приложения установлены в /Applications / EPD32-6.1
и базовая структура Python в / Библиотека / Фреймворки / Python.рамки/версии/6.1
и Interpreter Executable должно быть:
/ Библиотека / Фреймворки / Python.framework / версии/6.1 / python
вы можете поставить (почти) любое Interpreter Name вам нравится. 🙂
Надежда эта помощь.
если это не поможет, google search for “Error getting info on interpreter” дает следующее (проблема может быть связана с версия Eclipse (старые есть ошибки) и ссылке против реальный путь
опции переводчика /Library/Frameworks/Python.framework/Versions/2.7/Python не работает.
Я должен был выбрать /Library/Frameworks/Python.framework/Versions/2.7/bin/python
для последних версий Canopy под Mac правильный путь кажется:
/. сначала, но затмению это не понравилось.
поверх Mac X Lion я сделал следующие установки: * Enthought 2.7 (эти предварительные настройки Python 2.7 и многие другие библиотеки). * Aptana Studio 3.03 (не бета-версия) с предварительно настроенным PyDev. * Наконец, и после некоторых проблем я увидел, что на моем Mac установлены некоторые версии Python (и я не помню, когда я его установил). Я должен был выбрать версию, которая justus87 говорит. Положите внимание на него, потому что его легко путают и ломают голову!
помните, что путь к файлу python: / Библиотека / Фреймворки / Python.framework/версии/7.1/bin / python
вам нужно убедиться, что вы указываете его на интерпретатор EPD, а не только обычный интерпретатор python 2.7. Для EPD 7.2 64-бит на mac путь «/Библиотека / фреймворки / EPD64.framework / версии / 7.2 / bin»
Я запускаю Python 3, поэтому мне пришлось внести эти изменения, чтобы получить python.exe как мой переводчик.
прокомментировать строку 16, так как True и False считаются ключевыми словами в Python 3.
сохранить, и вы сможете успешно установить C:\Python32\python.exe как переводчик. Я проверил папки по умолчанию.
Если вы можете получить (Enthought) распределение навеса, но не уверены, где он установлен в/Что нужно PyDev, следующее работало для меня, чтобы использовать эту установку, чтобы определить правильное решение и установить его:
запустить ipython (как он был установлен с распределением навеса).
найдите опцию, которая заканчивается in: «/ bin » ( например, мой был: / Users / myUserNameHERE / Library / Enthought/Canopy_32bit / User/bin )
теперь забавная часть (как это работало для меня), перейдите в настройки eclipse и под: «Pydev» ==> «интерпретатор-Python» и выберите «Создать». ‘
добавить в этот полный путь в разделе «исполняемый файл интерпретатора» поместите этот путь вместе с «python» (на mac [ вероятно, » python.exe » на windows?] ). Для «имени переводчика» я поставил » Python2.7-Canopy’);
PyDev затем автоматически включает другие библиотеки (я проверил флажки, чтобы принять его предложения).
наконец, вам нужно убедиться, что ваш проект использует этот интерпретатор. Убедитесь либо
в моей системе, все тогда наконец-то работал, matplotlib, numpy и т. д. Да!
Источник
Перспектива Pydev Не Отображается После Установки Для Eclipse
после установки последней версии Pydev на eclipse он не отображается в списке доступных перспектив.
Eclipse, однако, перечисляет pydev как установленный, что кажется мне странным. Я также хотел бы добавить, что я установил pydev стандартным методом (через опцию «установить новое программное обеспечение» в разделе «Справка»).
любая помощь о том, как решить эту проблему, была бы весьма признательна.
17 ответов
Я потратил часы, пытаясь заставить плагин PyDev 3.0.0 работать с Eclipse Kepler на моем mac. Я пытался!—2—>
ничего не работало, пока я, наконец, не попробовал версию 2.8.2 плагина. Я бы сказал, получить zip 2.8.2 от здесь и поставить unzippied версии в папке /dropins затмения. Перезапуск Затмение. Затем перейдите в меню настроек и обратите внимание, что запись PyDev должна быть там. Когда-нибудь лучше запустить Eclipse с учетными данными администратора. Что-то вроде этого в командной строке:
во-первых, сначала перейдите в пункт PyDev официальным страница, в нем говорилось:
посмотреть:PyDev не появляется после установки на скачать страница Для справки по использованию Java 8 vm в Eclipse.
посещает на этой странице, Это показывает, что:
Ну и главный вопрос на данный момент заключается в том, что пункт PyDev требуется Java 8 in приказ бежать. Итак, если вы не хотите поддерживать PyDev идя Маршрут LiClipse (который в основном является автономным PyDev плюс некоторые лакомства), возможно, вам придется пройти через некоторые петли, чтобы убедиться, что вы фактически используя Java 8 для запуска Eclipse / PyDev (как описано ниже).
кроме того, имейте в виду, что PyDev 5.x требует Eclipse 4.6 и далее (для Eclipse 3.8 используйте PyDev 4.икс.)
мой openJDK 1.8-это Java 8 уже выполнил требование, изложенное в заявлении pydev выше. Так что это не проблема Java в моем случае.
напомнить последнее заявление пункт PyDev:
кроме того, имейте в виду, что PyDev 5.x требует Eclipse 4.6 и далее (для Eclipse 3.8 используйте PyDev 4.икс.)
поэтому я проверяю свою версию eclipse, это просто старая версия 3.8.1:
но то, что я скачал-это последняя версия pydev 5.3.0, что неправильно, так что теперь я должен следовать такое поручение для удаления pydev 5.3.0 сначала:
используйте клавишу Shift, чтобы выделить оба и удалить:
после удаления посещений на этой странице копировать старая ссылка РЕПО:
еще раз напомнить последнее заявление пункт PyDev:
кроме того, имейте в виду, что PyDev 5.x требует Eclipse 4.6 и далее (для Eclipse 3.8 используйте PyDev 4.икс.)
мое затмение 3.8.1, поэтому мне просто нужно выбрать 4.х. Самая последняя версия 4.x перечисленные выше 4.5.5.
я копирую ссылку http://www.pydev.org/update_sites/4.5.5 и вставьте в eclipse Установить Новое Программное Обеспечение страница для установки:
Источник