PyCharm Python ImportError 行为
PyCharm Python ImportError Behave
我正在尝试 运行 使用 Behave 在 PyCharm 中进行一些测试,它一直告诉我我遇到了这个问题:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/behave", line 7, in <module>
from behave.__main__ import main
ImportError: No module named behave.__main__
我让一位同事克隆了该项目,他们可以 运行 在他们的机器上运行良好,有什么见解吗?
Python 2.7.10
$ pip freeze | grep ehave
behave==1.2.5
问题是在 Project Interpreter 中,我在我的机器上使用的是 Python 的不同版本,它没有行为 installed/included。
我正在尝试 运行 使用 Behave 在 PyCharm 中进行一些测试,它一直告诉我我遇到了这个问题:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/behave", line 7, in <module>
from behave.__main__ import main
ImportError: No module named behave.__main__
我让一位同事克隆了该项目,他们可以 运行 在他们的机器上运行良好,有什么见解吗?
Python 2.7.10
$ pip freeze | grep ehave
behave==1.2.5
问题是在 Project Interpreter 中,我在我的机器上使用的是 Python 的不同版本,它没有行为 installed/included。