[英]Unable to import owlready in Python
I am trying to use the owlready library in Python. 我正在尝试在Python中使用owlready库。 I downloaded the file from link( https://pypi.python.org/pypi/Owlready ) but when I am importing owlready I am getting following error:
我从链接( 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'
I tried running: 我尝试跑步:
pip install owlready
I am get the error: 我得到错误:
error: could not create '/usr/local/lib/python3.4/dist-packages/owlready': Permission denied
Try installing it using pip
instead. 尝试使用
pip
安装它。
Run the command pip install <module name here>
to do so. 运行命令
pip install <module name here>
。 If you are using python3, run pip3 install <module name here>
. 如果您使用的是python3,请运行
pip3 install <module name here>
。
If neither of these work you may also try: 如果以上两项都不起作用,您也可以尝试:
python -m pip install <module name here>
or 要么
python3 -m pip install <module name here>
If you don't yet have pip
, you should probably get it. 如果您还没有
pip
,那么您应该可以得到它。 Very commonly used python package manager. 非常常用的python软件包管理器。 Here are some details on how to set the tool up.
以下是有关如何设置工具的一些详细信息。
You need installed library: 您需要安装的库:
C:\PythonX.X\Scripts
pip install owlready
Successfully installed Owlready-0.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.