1. 程式人生 > >Eclipse 中安裝 Pydev 外掛

Eclipse 中安裝 Pydev 外掛

一般有兩種方法。

一、線上安裝

但是安裝過程遇到如下問題:
An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Problems downloading artifact: osgi.bundle,com.python.pydev,5.0.0.201605051159. Error reading signed content:C:\Users\hello\AppData\Local\Temp\signatureFile1853622509879154911.jar An error occurred while processing the signatures for the file: C:\Users\hello\AppData\Local\Temp\signatureFile1853622509879154911.jar
谷歌中搜索,沒有太匹配的問題,點了幾個頁面,也沒有解決方法。 然後以如下的資訊搜尋: An error occurred while processing the signatures for the file: C:\Users\hello\AppData\Local\Temp\signatureFile
有個相同的錯誤問題提問。
瀏覽回答
可以發現,基本沒有給出解決方法,就說是某些特定版本的eclipse的known problem。。。 然後就沒辦法了。。反正這個問題我最後沒解決掉。有知道的,麻煩說下啊,謝謝!

二、離線安裝

1. 直接到http://pydev.org/download.html 下載離線安裝ZIP包。(這裡我直接百度Pydev下載,在CSDN中下載的。)
2. 一種比較隨意的方法就是把壓縮包裡面的plugins解壓到Eclipse安裝目錄下對應的目錄,features目錄也是同樣操作。但是你如果不想搞亂原版本的Eclipse,可以選擇如下操作:
在Eclipse安裝目錄下新建一個links資料夾。然後再在links資料夾下新建名為eclipse的目錄,最後把pedev.zip的壓縮包內容解壓到eclipse目錄中。
在links目錄下,新建一個名為pydev.link的檔案,檔案的內容為:path=C:\ItDevelop\eclipse\links\eclipse ,(其中path=C:\ItDevelop\eclipse為eclipse的安裝目錄)
3. 之後重啟Eclipse就可以了。如何檢查是否已經正確安裝pydev? 開啟Eclipse–>Windows–>preferences,然後在左邊的樹狀結構中就能找到Pydev選項。