ModuleNotFoundError: No module named 'script'

前端 未结 1 1779
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-21 18:22

I have attempted to install PYAHK via pip install pyahk as well as python setup.py install

# pip --version
pip 9.0.1 from c:\\pytho         


        
相关标签:
1条回答
  • 2020-12-21 18:44

    from script import was a relative import in Python 2 but became an absolute import in Python 3; there is no global module 'script' hence the error. In Py3 it must be from ahk.script import or relative import from .script import.

    0 讨论(0)
提交回复
热议问题