由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - PytDev: unresolved import
相关主题
有人用Haskell吗How to link math library in VC2005?
python或pydev怎么跳到一个section的头/尾c++ 编译错误求教
pydev里可以直接引用源程序吗VC++ does not support strlen()
打算学python,求推荐editor!C++ template question with friend ostream
MAC 下面 python 编程用什么IDE?请教一个用gsl库的问题
python大家用什么IDE? error LNK2001:的错误如何改正?
一个VC++ .net里编译C程序的问题调用win32 DLL的问题
问一个C++函数Parameter的问题没完的“unresolved external symbol” in c++ compiling
相关话题的讨论汇总
话题: import话题: pydev话题: unresolved话题: pytdev话题: sybase
进入Programming版参与讨论
1 (共1页)
S*******s
发帖数: 13043
1
My test script runs well in PyDev. but in the IDE, it marks error in the
line import Sybase, with description Unresolved import: Sybase
again, it runs well, which means the python is able to find the egg while
pydev can not. Where shall I direct pydev to solve the reference?
S*******s
发帖数: 13043
2
screen shot

【在 S*******s 的大作中提到】
: My test script runs well in PyDev. but in the IDE, it marks error in the
: line import Sybase, with description Unresolved import: Sybase
: again, it runs well, which means the python is able to find the egg while
: pydev can not. Where shall I direct pydev to solve the reference?

l*******m
发帖数: 1096
3
right click on your project -> properties -> Pydev-pythonpath -> external
libraries -> add ...

【在 S*******s 的大作中提到】
: screen shot
S*******s
发帖数: 13043
4
i did so. I added both the folder and the egg. then I got the snapshot in
the previous post.

【在 l*******m 的大作中提到】
: right click on your project -> properties -> Pydev-pythonpath -> external
: libraries -> add ...

l*******m
发帖数: 1096
5
em your OS is win
there are other approaches:
1) use sys.path to add the path, such as
import sys
sys.path.append('/path/to/package')
2) or you can ignore the error by using #@UnresolvedImport. e.g.
import xxx #@UnresolvedImport

【在 S*******s 的大作中提到】
: i did so. I added both the folder and the egg. then I got the snapshot in
: the previous post.

1 (共1页)
进入Programming版参与讨论
相关主题
没完的“unresolved external symbol” in c++ compilingMAC 下面 python 编程用什么IDE?
这个程序为什么不能运行?python大家用什么IDE?
[合集] 关于C++ Class Template编程一问一个VC++ .net里编译C程序的问题
[合集] 类的静态“函数指针”如何初始化问一个C++函数Parameter的问题
有人用Haskell吗How to link math library in VC2005?
python或pydev怎么跳到一个section的头/尾c++ 编译错误求教
pydev里可以直接引用源程序吗VC++ does not support strlen()
打算学python,求推荐editor!C++ template question with friend ostream
相关话题的讨论汇总
话题: import话题: pydev话题: unresolved话题: pytdev话题: sybase