问题
'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