环境:win11,python3.9
下载了Albert Huang修改过的PyBluez0.22(https://github.com/karulis/pybluez%EF%BC%89%EF%BC%8C%E4%BD%BF%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%EF%BC%8C%E4%BD%BF%E7%94%A8python setup.py install手动安装包PyBluez0.22,命令行界面出现下面的问题:
C:\Users\Desktop\Experiment\pybluez-master>C:\Python\Python39\python setup.py install
Traceback (most recent call last):
File "C:\Users\Desktop\Experiment\pybluez-master\setup.py", line 3, in <module>
from setuptools import setup, Extension
File "C:\Users\AppData\Local\Programs\Python\lib\site-packages\setuptools\__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
File "C:\Users\AppData\Local\Programs\Python\lib\site-packages\_distutils_hack\override.py", line 1, in <module>
__import__('_distutils_hack').do_override()
File "C:\Users\AppData\Local\Programs\Python\lib\site-packages\_distutils_hack\__init__.py", line 77, in do_override
ensure_local_distutils()
File "C:\Users\AppData\Local\Programs\Python\lib\site-packages\_distutils_hack\__init__.py", line 64, in ensure_local_distutils
assert '_distutils' in core.__file__, core.__file__
AssertionError: C:\Python\Python39\lib\distutils\core.py
请问如何解决?