[英]Errors by installing Python modules Pygame and Pygame Zero
[英]Python - Pygame For android errors
我遵循的是pgs4a的文檔 ,在構建部分中,我遇到了WindowsError [Error 2]
。
命令和回溯:
C:\Users\karuna\Desktop\Jython\Python\pgs4a-0.9.4>android.py build "C:\Users\karuna\Desktop\Jython\P
ython\pgs4a-0.9.4\mygame" release install
Updating build files.
Traceback (most recent call last):
File "C:\Users\karuna\Desktop\Jython\Python\pgs4a-0.9.4\android.py", line 66, in <module>
main()
File "C:\Users\karuna\Desktop\Jython\Python\pgs4a-0.9.4\android.py", line 54, in main
build.build(iface, args.argument[0], args.argument[1:])
File "buildlib\build.py", line 301, in build
build_core(iface, directory, commands)
File "buildlib\build.py", line 221, in build_core
subprocess.call([plat.android, "update", "project", "-p", '.', '-t', 'android-8', '-n', versione
d_name])
File "C:\Python2.7 For Chintoo\lib\subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python2.7 For Chintoo\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python2.7 For Chintoo\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
顯而易見
我正在使用Windows 7,並且具有:
請幫忙!
順便說一句,我希望先在手機上運行它。 我正在考慮稍后(在本教程完成之后)移至模擬器。
這個問題更適合https://android.stackexchange.com/嗎?
我不確定這是否對您來說仍然是一個問題,但是我最近遇到了類似的問題並設法解決了這個問題,所以我只在此處留個便條。
如果有人遇到這種錯誤,請轉到pgs4a文件夾和android-sdk文件夾。 在那里,運行SDK Manager.exe文件。 您將看到“工具”列表和不同的android版本。 嘗試找到您正在使用的版本並安裝所有“未安裝”的版本。
通過在當前和以前的Android版本下安裝所有內容,我設法解決了上述問題。 希望這會對遇到同樣問題的任何人有所幫助!
將文件夾android-sdk-windows重命名為android-sdk
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.