项目导入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://docs.djangoproject.com/en/dev/intro/tutorial01/
http://stackoverflow.com/questions/4631377/unresolved-import-issues-with-pydev-and-eclipse