[英]Error adding 'import lettuce' on PyCharm
I have a problem with Python and lettuce
. 我有Python和
lettuce
的问题。
I already install the pip
and lettuce
in Python 2.7, and I'm trying to create a .features
file and a .py
file for the steps. 我已经在Python 2.7中安装了
pip
和lettuce
,我正在尝试为这些步骤创建.features
文件和.py
文件。 The problem is that when I put the line from lettuce import *
I have an error that says: 问题是,当我
from lettuce import *
行中时from lettuce import *
我有一个错误,上面写着:
"Unresolved reference lettuce..." and then: "this inspection detects names that should resolved but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items" . “未解决的参考莴苣...”然后: “此检查检测到应该解决的名称但不会。由于动态调度和鸭子打字,这在有限但有用的情况下是可能的。顶层和类 -比实例项更好地支持级别项“ 。
I really don´t know how to fix this problem. 我真的不知道如何解决这个问题。 Can anyone can help me please?
有人可以帮我吗?
I just found the problem. 我刚发现了这个问题。 What I did, just in case anyone has the same problem is:
我做了什么,万一有人遇到同样的问题是:
In my PyCharm project: 在我的PyCharm项目中:
Just in case you are not able to add an other module (that happened to me as well) you can change the project interpreter. 如果您无法添加其他模块(也发生在我身上),您可以更改项目解释器。
Hope this works! 希望这个有效!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.