import keyboard for python error

前端 未结 1 645
清歌不尽
清歌不尽 2021-01-19 21:04

So i downloaded the keyboard module for python 2.7 using

pip install keyboard.

After installing i tried to import it as such

im         


        
相关标签:
1条回答
  • 2021-01-19 21:56

    This is a bug in Python that was caused in the 2.7 release line by https://bugs.python.org/issue27330 and fixed in https://bugs.python.org/issue29082 . It exists in 2.7.13 and is fixed in 2.7.14.

    keyboard triggers this bug by using from __future__ import unicode_literals in keyboard._winkeyboard.

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