问题标签 [jython-2.7]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
716 浏览

python-2.7 - 将 oozie.common.file 导入为文件 ImportError: No module named oozie

从其他模块导入文件时出现此错误?谁能告诉我可能是什么原因。它在控制台中运行良好,但是当我将它作为 oozie 作业运行时,命令失败。

文件夹结构:

我尝试导入的位置:

命令:

0 投票
0 回答
1331 浏览

pycharm - 有没有办法将jar文件添加到pycharm并直接运行jython?

这里我有两个问题:

  1. java -cp如何在使用 jython 之类的命令运行 .py 文件时添加外部 jar 文件?
  2. 如何使用 jython 在 pycharm 中运行 .py 文件?
  3. pycharm如何处理像eclipse这样的外部jarconfigure build path来将特定的jar文件添加到项目中?

这是我遇到的场景:

从 sourceforge 下载所有 jar htmlutil jar 文件,然后编写一个gartner.py文件,这里是源代码中的导入片段:

并像这样在命令行中运行这样的文件:

它可以做我想做的事,但它太无聊了,我在编写python文件时无法检查它的错误,那么有什么方法可以解决这种尴尬吗?

0 投票
0 回答
787 浏览

python - Jython:ImportError:没有名为 scipy 的模块