我正在尝试学习如何使用 Abaqus 脚本。我刚刚下载了 Eclipse 并添加了 pydev 插件。一切似乎都运转良好。
我现在要做的是添加所有内置的 Abaqus 库或模块。
我怎样才能在 Eclipse 中做到这一点?或者我应该更换IDE?还是不可能?
我刚刚尝试过,但没有成功,我不完全明白我需要做什么。
我是 Python 的初学者(今天是我的第二天)。我在 abaqus 文件夹中有 python 文件夹。它导致两个子文件夹:
我也尝试添加这个解释器,但 Eclipse 说它无法添加它(获取解释器信息时出错)
我刚刚添加了整个 lib 和 obj 文件夹。也许一旦我更多地接触Python,我可以给你更详细的解释。
新信息:
当我尝试运行脚本时,它显示:
ImportError: Bad magic number in C:\SIMULIA\Abaqus\6.9-1\Python\Lib\abaqus.pyc
是否存在兼容性问题,可能是不同版本的 Python 解释器?
I am trying to learn how to use Abaqus Scripting. I just downloaded Eclipse and added the pydev plugin. Everything seems to work fine.
What I want to do now is to add all the built-in Abaqus libraries or modules.
-
I would like, for example, the IDE to display the class members and methods when I press the ".".
-
I would like to see if the code compiles fine without running it into Abaqus.
How can I do this in Eclipse? Or should I change IDE? Or is it not possible?
I just tried, but no success, I don't fully understand what I need to do.
I am very much a beginner at Python (today is my second day). I have in the abaqus folder the python folder. It leads to two subfolders:
I also tried to add this interpreter but Eclipse said it can not add it (Error getting info on the interpreter)
I just added the whole lib and obj folder. Maybe once I get more involved in Python I can give you more detailed explanations.
New information:
When I try to run the script it says:
ImportError: Bad magic number in C:\SIMULIA\Abaqus\6.9-1\Python\Lib\abaqus.pyc
Is there a compatibility problem, maybe with different versions of the Python interpreters?
发布评论
评论(1)
您可以将这些库添加到设置中以获得您想要的效果。这可以在通过
Window > 访问的
。添加Libraries
设置中完成。首选项> PyDev >解释器 - Python >库.egg
或要添加的库的源文件夹,然后单击应用
,然后单击确定
。You can add these libraries to the settings to get the effect you want. This can be done in the
Libraries
setting accessed throughWindow > Preferences > PyDev > Interpreter - Python > Libraries
. Add the.egg
or source folder of the libraries you want to add and clickApply
followed byOK
.