import owlready2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

import owlready2

asma
Hi,
I want to import my ontoogy using python (vs). When i write import owlready2, i get this error:

ModuleNotFoundError: No module named 'owlready2'

i tried to fix the error by pip install owlready2

but does not work
Reply | Threaded
Open this post in threaded view
|

Re: import owlready2

Jiba
Administrator
Hi,

It seems that you did not installed owlready2 properly. You should check whether you have a "owlready2" subdirectory in one of the directory listed in sys.path (in Python).

Alternatively, you can install owlready2 manually: download the archive, extract it, rename the main directory to "owlready2" and put it in any directory listed in sys.path (usually, the current directory of your script works also).

Jiba