从java导入错误pexpect调用python函数
当我在文件从java导入错误pexpect调用python函数,python,pexpect,jython-2.5,Python,Pexpect,Jython 2.5,当我在文件Scripts/ieee802.1ag/python/CFMTestCases.py中使用 java PythonInterpreter() 它会引发以下错误: Exception in thread "MainThread" Traceback (most recent call last): File "<string>", line 1, in <module> File "Scripts/IEEE 802.1ag/Python/CFMTest
Scripts/ieee802.1ag/python/CFMTestCases.py
中使用
java PythonInterpreter()
它会引发以下错误:
Exception in thread "MainThread" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "Scripts/IEEE 802.1ag/Python/CFMTestCases.py", line 5, in <module>
import pexpect
ImportError: No module named pexpect
Java Result: 1
线程“MainThread”回溯中的异常(最近一次调用):
文件“”,第1行,在
文件“Scripts/IEEE 802.1ag/Python/CFMTestCases.py”,第5行,在
导入预期
ImportError:没有名为pexpect的模块
Java结果:1
我使用的是jython2.5和pexpect软件包版本2.3。是否在Jython中安装了pexpect?什么是
sys.path
?我的sys路径是“Scripts/IEEE 802.1ag/Python/”@ThomasK请告诉我如何在Jython中安装pexpect,并验证是否尝试将pexpect.py复制到该文件夹中。