我想在Python中使用owlready庫。我從網上下載的鏈接文件(https://pypi.python.org/pypi/Owlready),但是當我輸入owlready我收到以下錯誤:無法導入Python中的owlready
>>> from owlready import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'owlready'
我試圖運行:
pip install owlready
我得到的錯誤:
error: could not create '/usr/local/lib/python3.4/dist-packages/owlready': Permission denied
你已經安裝在你的盒子'pip'?如果是,你運行的是Gnu/Linux操作系統,'sudo pip install Owlready'。一切都會好起來的。 –
你把'owlready'放在哪裏? –