Python Programming for the absolute beginner - Livewires is not working

二次信任 提交于 2019-12-11 09:01:05

问题


'Python programming for the absolute beginner' requires you to install it's pygame and special livewires.

I have now successfully installed pygame (and tested it by putting in 'install pygame' with no errors) , but when i click the '.bat' file of livewires, it spews out this.

C:\Uses\Harry\Downloads\setup.py
'setup.py' is not reconized as an internal or external command,
operable program or batch file.

C:\Users\Harry\Downloads>pause
Press any key to continue . . .

What do i do! Please help.


回答1:


Alright, I tracked down the source code for this. Fun stuff.

Inside setup.bat is just:

setup.py
pause

How quaint. To fix your current problem, you need to change the first line of the file to:

python setup.py

Now when you run setup.bat it should properly run the setup.py file.

Either this was a clever ploy by whoever created this package as a crash course into debugging, or you should maybe consider learning Python from somewhere else.

Good luck!



来源:https://stackoverflow.com/questions/29781392/python-programming-for-the-absolute-beginner-livewires-is-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!