1. 程式人生 > 實用技巧 >如何在Linux和Windows中為Eclipse安裝Python IDE?

如何在Linux和Windows中為Eclipse安裝Python IDE?

Eclipse is a popular IDE that supports a lot of different operating systems and programming languages. Eclipse supports the Python programming language and development for operating systems Windows, Linux, Mac OS X, etc. In this tutorial, we will learn Python IDE installation for operating systems Windows, Linux with eclipse installer and repository.

Eclipse是一種流行的IDE,它支援許多不同的作業系統和程式語言。 Eclipse支援Python程式語言和針對Windows,Linux,Mac OS X等作業系統的開發。在本教程中,我們將學習針對Windows,帶有Eclipse安裝程式和儲存庫Linux作業系統的Python IDE安裝。

安裝Java或JRE (Install Java or JRE)

Eclipse IDE is devleoped with the Java programming language. This means in order to run Eclipse the Java or JRE should be already installed if not we will install the JRE or JDK for Linux and Windows like below.

Eclipse IDE使用Java程式語言開發。 這意味著,為了執行Eclipse,如果沒有安裝Java或JRE,則應該已經安裝了Java或JRE,如下所示,我們將為Linux和Windows安裝JRE或JDK。

How To Install Java (JRE) Update On Windows?
如何在Windows上安裝Java(JRE)更新?
How To Download, Install JDK (Java Development Kit) On Windows?
如何在Windows上下載並安裝JDK(Java開發工具包)?

安裝Eclipse (
Install Eclipse)

After installing Java or JRE or JDK we will start the Eclipse IDE installation. Python IDE for Eclipse is not provided directly with Eclipse installation. So first we will install another IDE like Java for the Eclipse and then we will install Python IDE from the marketplace. Following instructions can be used for Linux and Windows very similar.

安裝Java或JRE或JDK之後,我們將開始Eclipse IDE安裝。 Eclipse安裝未直接提供適用於Eclipse的Python IDE。 因此,我們首先將為Eclipse安裝另一個類似Java的IDE,然後從市場上安裝Python IDE。 以下說明可用於Linux和Windows,非常相似。

視窗 (Windows)

First, we will download the Eclipse IDE 2020-03 from the following link for the 64-bit version by default. The current operating system is Windows but we can select other operating systems like Mac OS X, Linux, etc.

首先,預設情況下,我們將從以下連結(用於64位版本)下載Eclipse IDE 2020-03。 當前的作業系統是Windows,但是我們可以選擇其他作業系統,例如Mac OS X,Linux等。

https://www.eclipse.org/downloads/

https://www.eclipse.org/downloads/

Eclipse Dowload Page
Eclipse下載頁面

We will be redirected into the following web page which provides the installer named eclipse-inst-win64.exe .

我們將被重定向到下面的網頁,該網頁提供名為eclipse-inst-win64.exe的安裝程式。

Eclipse Download For Windows
Eclipse Windows下載

For alternative operating systems like Linux and Windows use the following page which provides the same experience to download the Eclipse IDE.

對於Linux和Windows等替代作業系統,請使用以下頁面,該頁面提供了與下載Eclipse IDE相同的體驗。

https://www.eclipse.org/downloads/packages/

https://www.eclipse.org/downloads/packages/

Eclipse Installer For Windows, Mac OS X, Linux
用於Windows,Mac OS X,Linux的Eclipse安裝程式

Linux(Linux)

Eclipse installation for Linux distributions like Ubuntu, Debian, Fedora, Mint, Kali, CentOS can be done in different ways. Repositories can be used to install Eclipse IDE but generally, the repositories provide older or outdated versions. The best way is to use the Eclipse Installer from eclipse.com.

可以通過不同方式完成針對Linux發行版(例如Ubuntu,Debian,Fedora,Mint,Kali,CentOS)的Eclipse安裝。 可以使用儲存庫來安裝Eclipse IDE,但是通常,儲存庫提供了較舊或過時的版本。 最好的方法是使用eclipse.com上的Eclipse Installer。

LEARN MORE How To Download, Install or Uninstall PyCharm On Windows? 瞭解更多如何在Windows上下載,安裝或解除安裝PyCharm?

https://www.eclipse.org/downloads/

https://www.eclipse.org/downloads/

Download Eclipse Installer For Linux
下載適用於Linux的Eclipse安裝程式

We will be redirected to the followin web page where the Eclipse installer is provided as a tar.gz file. We will download the eclipse-ins-linux64.tar.gz file like below.

我們將被重定向到跟隨的網頁,其中Eclipse安裝程式以tar.gz檔案的形式提供。 我們將像下面那樣下載eclipse-ins-linux64.tar.gz檔案。

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-03/R/eclipse-inst-linux64.tar.gz

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-03/R/eclipse-inst-linux64.tar.gz

Download eclipse-inst-linux64.tar.gz File
下載eclipse-inst-linux64.tar.gz檔案

After the download is completed we have to extract the tar.gz file to run installation executables. We will use the file browser extractor to extract like below.

下載完成後,我們必須解壓縮tar.gz檔案以執行安裝可執行檔案。 我們將使用檔案瀏覽器提取器進行如下提取。

Extract Eclipse Installer Files For Linux
提取Linux的Eclipse安裝程式檔案

After extracting the installation files we will navigate into the folder eclipse-linux64 directory like below and click to the eclipse-inst script like below which will start eclipse installation process.

解壓縮安裝檔案後,我們將導航至如下所示的eclipse-linux64資料夾目錄,然後單擊至如下所示的eclipse-inst指令碼,這將開始eclipse安裝過程。

Start Eclipse Installation Process For Linux
啟動Linux的Eclipse安裝過程

Below we will see a list of programming languages and development environments like Java, Java Enterprise, C/C++, Web and JavaScript, PHP etc. We will select the programming language we want to install for Eclipse. In this example we will select the Eclipse IDE for Java Developers

在下面,我們將列出程式語言和開發環境的列表,例如Java,Java Enterprise,C / C ++,Web和JavaScript,PHP等。我們將選擇要為Eclipse安裝的程式語言。 在此示例中,我們將為Eclipse IDE for Java Developers選擇Eclipse IDE for Java Developers

Select Programming Language To Install For Eclipse
選擇要為Eclipse安裝的程式語言

When we select the Java Programming Language we will see the following installation screen and some basic configuration. Java 1.8+ VM specifies the JVM path which should be higher then Java 1.8. Installation Folder is the path where Java IDE will be installed.

當我們選擇Java程式語言時,我們將看到以下安裝螢幕和一些基本配置。 Java 1.8+ VM指定的JVM路徑應高於Java 1.8。 Installation Folder是Java IDE的安裝路徑。

Start Java IDE Installation For Eclipse
啟動Eclipse的Java IDE安裝

During the installation or at the end of the installation we may be asked to accept the given licences which will look like below. We will just select Remember accepted licenses and then click to the Accept button like below.

在安裝過程中或安裝結束時,可能會要求我們接受給定的許可證,如下所示。 我們將只選擇“ Remember accepted licenses ,然後單擊如下所示的“ Accept按鈕。

Accept Eclipse License Agreements
接受Eclipse許可協議

When the Eclipse installation is completed we will see the following screen where we can launch the Eclipse IDE for Java by clicking to the Launch button.

Eclipse安裝完成後,我們將看到以下螢幕,在該螢幕上,通過單擊“ Launch按鈕可以啟動Java的Eclipse IDE。

Launch Eclipse IDE For Java
啟動Eclipse IDE for Java

為Eclipse安裝Python IDE (Install Python IDE For Eclipse)

First, we will open the newly installed Eclipse from the desktop shortcut or command line. For the first time, we will see the following screen where we will set the workspace for the eclipse project.

首先,我們將從桌面快捷方式或命令列開啟新安裝的Eclipse。 第一次,我們將看到以下螢幕,其中將設定eclipse專案的工作區。

Select The Workspace Path
選擇工作區路徑

Then the eclipse will be opened like below. Python IDE is provided as a 3rd party extension with the name of the PyDev. We will open the Eclipse Marketplace from the Help menu like below.

然後,Eclipse將如下所示開啟。 Python IDE作為第三方擴充套件提供,名稱為PyDev。 我們將通過如下所示的“ Help選單開啟Eclipse Marketplace

Open MarketPlace
公開市場

We will see the Eclipse Market place screen like below. We will search for the python keyword from the Search tab which is default. The PyDev extension will be listed like below. We will click to the Install to start installation .

我們將看到如下所示的Eclipse Market place螢幕。 我們將從預設的“ Search標籤中Search python關鍵字。 PyDev副檔名將如下所示。 我們將單擊“ Install以開始安裝。

Eclipse PyDev Install
Eclipse PyDev安裝

We will be asked for some selected features where we will leave the default and click to the Confirm like below.

我們將被要求提供一些選定的功能,這些功能將保留預設設定,然後單擊“ Confirm如下所示。

Confirm Selected PyDev Features
確認選定的PyDev功能

In the next step we will Accept the PyDev licences like below and lick to the Finish.

在下一步中,我們將Accept如下所示的PyDev許可,然後單擊Finish

Eclipse Review License
Eclipse審查許可

When the installation start the Market Place will be closed and the installation can be tracked from bottom right corner of the Eclipse main screen like below.

安裝開始時,Market Place將關閉,並且可以從Eclipse主螢幕的右下角跟蹤安裝,如下所示。

PyDev Installation
PyDev安裝

When the installation is completed we will see the following message where we need to restart the Eclipse in order to start PyDev Python development environment.

安裝完成後,我們將看到以下訊息,我們需要在其中重新啟動Eclipse以啟動PyDev Python開發環境。

Restart Eclipse
重新啟動Eclipse

翻譯自: https://www.poftut.com/how-to-install-python-ide-for-eclipse-in-linux-and-windows/