最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Buildozer not able to find distutils, despite having setuptools installed - Stack Overflow

programmeradmin1浏览0评论

I am trying to make my own android app with a kivy project on Windows 11, and buildozer is not working. I've installed WSL and have gotten to the point where I need to run buildozer android debug deploy run, but I get this error:

Traceback (most recent call last):
  File "/home/sharpy796/.local/bin/buildozer", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/__init__.py", line 1018, in run_command      
    targets = [x[0] for x in self.targets()]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/__init__.py", line 910, in targets
    m = __import__('buildozer.targets.{0}'.format(target),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/targets/android.py", line 40, in <module>    
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

Fervently searching online, it seems like this is an issue with distutils not coming with python anymore (it seems to be deprecated). Setuptools is supposed to provide it, but somehow, despite uninstalling it and reinstalling it, upgrading it, doing the same for python (I'm now trying to run version 3.12.3 instead of version 3.11.9), and more.

Why can't buildozer find distutils despite setuptools obviously being on my computer??

发布评论

评论列表(0)

  1. 暂无评论