适用于绝对初学者的Python编程-Livewires无法正常工作 [英] Python Programming for the absolute beginner - Livewires is not working

查看:179
本文介绍了适用于绝对初学者的Python编程-Livewires无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

面向绝对初学者的Python编程"要求您安装pygame和特殊的电线.

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

我现在已经成功安装了pygame(并通过无任何错误地放入"install pygame"进行了测试),但是当我单击livewires的".bat"文件时,它就会弹出.

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 . . .

我该怎么办!请帮忙.

推荐答案

好吧,我找到了

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

内部setup.bat就是:

setup.py
pause

多么古朴.要解决当前问题,您需要将文件的第一行更改为:

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

python setup.py

现在,当您运行setup.bat时,它应该可以正确运行setup.py文件.

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

无论是谁将这个软件包作为调试的速成课程创建的,这都是明智的选择,或者您也许应该考虑从其他地方学习Python.

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.

祝你好运!

这篇关于适用于绝对初学者的Python编程-Livewires无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆