【发布时间】:2017-03-09 13:26:35
【问题描述】:
我正在尝试在 Python 中使用 owlready 库。我从链接(https://pypi.python.org/pypi/Owlready)下载了文件,但是当我正在导入 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放在哪里了?