1

系统:Windows 10

IDE:带有 conda 环境的 PyCharm

当我尝试导入owlready2

from owlready2 import *

返回此错误:

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\........\lib\site-packages\owlready2\__init__.py", line 35, in <module>
    from owlready2.reasoning       import *
  File "C:\Users\.......\owlready2\reasoning.py", line 84, in <module>
    _subprocess_kargs = { "creationflags" : subprocess.CREATE_NO_WINDOW }
AttributeError: module 'subprocess' has no attribute 'CREATE_NO_WINDOW'
python-BaseException

Process finished with exit code 1

我该如何解决这个问题?谢谢你。

4

0 回答 0