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

 

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