2016-09-27 104 views
1

我是Python中的初學者。我正在使用owlready來研究本體。我在我的PyCharm IDE上安裝了owlready庫,但是在我的python代碼中導入owlready存在問題。我已經試過from owlready import *就像在文檔中,但它總是給我:無法將Owlready庫導入到Python中

Traceback (most recent call last): 
    File "C:/Users/siekoo/OneDrive/Development/python/NER/onto_start.py", line 1, in <module> 
    from owlready import * 
    File "C:\winpython\python-2.7.10.amd64\lib\site-packages\owlready\__init__.py", line 85 
    def __init__(self, *Entities, ontology = None): 
             ^
SyntaxError: invalid syntax 

回答