Eclipse導入pycharm或其他IDE中的PYTHON項目

項目導入Eclipse

1/首先新建一個pyrhon項目

2、導入存在的文件

3、確保所有的包都在python安裝目錄中或存在與本地磁盤

4、點擊項目名-->properties-->pythonPath-->Extetnal libraries添加source folders(外部包)

導入項目後找不到包的解決辦法:

There are two ways of solving this issue:

A:Delete the Python interpreter from "Python interpreters" and add it again.

B:Or just add the folder with the libraries in the interpreter you are using in your project, in my case I was using "bottle" and the folder I added was "c:\Python33\Lib\site-packages\bottle-0.11.6-py3.3.egg"

2、刪除python解釋器後在重新加在python解釋器

3、點擊項目,右鍵->pydev->remove error markers。移除錯誤標示,項目中如果真存在錯誤則會重新標示上錯誤標記。

4、注意,使用file->restart重啓ecliipse

參考網址:

http://stackoverflow.com/questions/4631377/unresolved-import-issues-with-pydev-and-eclipse

 

http://stackoverflow.com/questions/9194222/how-to-add-existing-files-to-project-using-eclipse-and-pydev/9196206#9196206

http://docs.djangoproject.com/en/dev/intro/tutorial01/

 

http://stackoverflow.com/questions/4631377/unresolved-import-issues-with-pydev-and-eclipse

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章