Python Programming for the absolute beginner - Liv

2019-08-05 09:19发布

'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条回答
相关推荐>>
2楼-- · 2019-08-05 10:05

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!

查看更多
登录 后发表回答