我正在尝试使用Python中的owlready库。我从link(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发布于 2017-03-09 21:35:22
请尝试使用pip进行安装。
运行命令pip install <module name here>来执行此操作。如果您使用的是python3,请运行pip3 install <module name here>。
如果这两种方法都不起作用,您也可以尝试:
python -m pip install <module name here>
或
python3 -m pip install <module name here>
如果您还没有使用pip,那么您可能应该使用它。非常常用的python包管理器。Here是关于如何设置该工具的一些详细信息。
发布于 2017-03-09 21:39:29
您需要安装库:
C:\PythonX.X\Scripts
pip install owlready
Successfully installed Owlready-0.3https://stackoverflow.com/questions/42696635
复制相似问题