How to get python-for-android script installer to recognize installed pbs on windows system?

I am trying to install Python for Android using the instructions given here. My goal is to create an APK file for a game in Pygame that is ready and works in Python. I am running Python 2.7.11 32-bit on a 32-bit Windows 10 Home system.

As shown here, I was initially told to install pbs since I am using Windows. I am doing this and the installation is successful.

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>CD C:\Users\RetailAdmin

C:\Users\RetailAdmin>pip install git+https://github.com/kivy/python-for-android.git
Collecting git+https://github.com/kivy/python-for-android.git
  Cloning https://github.com/kivy/python-for-android.git to c:\users\retail~1\appdata\local\temp\pip-g81ofc-build
Collecting appdirs (from python-for-android==0.3)
  Downloading appdirs-1.4.0-py2.py3-none-any.whl
Collecting colorama>=0.3.3 (from python-for-android==0.3)
  Downloading colorama-0.3.7-py2.py3-none-any.whl
Collecting sh>=1.10 (from python-for-android==0.3)
  Downloading sh-1.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\retail~1\appdata\local\temp\pip-build-ihr19r\sh\setup.py", line 4, in <module>
        import sh
      File "sh.py", line 37, in <module>
        support." % __version__)
    ImportError: sh 1.11 is currently only supported on linux and osx. please install pbs 0.110 (http://pypi.python.org/pypi/pbs) for windows support.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\retail~1\appdata\local\temp\pip-build-ihr19r\sh\

C:\Users\RetailAdmin>pip install pbs
Collecting pbs
  Downloading pbs-0.110.tar.gz
Building wheels for collected packages: pbs
  Running setup.py bdist_wheel for pbs ... done
  Stored in directory: C:\Users\RetailAdmin\AppData\Local\pip\Cache\wheels\83\a4\ed\de1e93a8fd1250a18a2d3fe79b07755188cfc1538144a6cc46
Successfully built pbs
Installing collected packages: pbs
Successfully installed pbs-0.110

, ( python-for-android), script , pbs . , , , appdirs/colorama .. . - sh 1.11, pbs 0.110, Windows.

, , ( ) ( ). , , pbs sh Windows . , , , pbs sh. , setuptools .

+4
1

  Python-for-android Windows.

, , . PR, , , - .

https://github.com/kivy/python-for-android/issues/1817

0

All Articles