无忧启动论坛

标题: 电脑安装了pytjon双击py文件怎么就不能运行? [打印本页]

作者: ge    时间: 2022-7-24 11:34
标题: 电脑安装了pytjon双击py文件怎么就不能运行?
手机变砖了,想在深度模式下刷机,可是要运行个py脚本,手机在不会退出深度模式,可是电脑已经安装了电脑安装了pytjon但是双击py文件不能运行,在CMD里输入python main.py就可以正常运行,这是什么原因?属性里面也关联发py文件了,默认就是用python打开

作者: 2010桥段    时间: 2022-7-24 11:48
yes,it is true
作者: ge    时间: 2022-7-24 11:52
2010桥段 发表于 2022-7-24 11:48
yes,it is true

浏览下主程序就好了,不知道在程序里面的是什么,原来以为就是这个呢
作者: ge    时间: 2022-7-24 11:52
2010桥段 发表于 2022-7-24 11:48
yes,it is true

英文看不懂
作者: ge    时间: 2022-7-24 12:06
用必应搜索把绕过联发科存储身份认证翻译成英文的结果翻,找到了https://www.xda-developers.com/b ... cation-requirement/页面,以为是过程有问题呢,发现少了个pip install pyusb pyserial json5,但是都按着做了,结果还是一样
作者: nttwqz    时间: 2022-7-24 12:07
是不是安装的时候没有勾选py luncher、Associate files with Python (requires the by luncher)
作者: ge    时间: 2022-7-24 12:13
nttwqz 发表于 2022-7-24 12:07
是不是安装的时候没有勾选py luncher、Associate files with Python (requires the by luncher)

我也忘记了,反正按照教程做的,图片上有哪个就选哪个了,我看看图片吧
作者: ge    时间: 2022-7-24 12:15
nttwqz 发表于 2022-7-24 12:07
是不是安装的时候没有勾选py luncher、Associate files with Python (requires the by luncher)

我找到图片了,也想起来了,py luncher选上了,Associate files with Python (requires the by luncher)也有了
好像有个让把第一个和第四个也选上,反正我是这样做的
作者: ge    时间: 2022-7-24 12:16
nttwqz 发表于 2022-7-24 12:07
是不是安装的时候没有勾选py luncher、Associate files with Python (requires the by luncher)

5不是4,弄错了
作者: ge    时间: 2022-7-24 12:18
nttwqz 发表于 2022-7-24 12:07
是不是安装的时候没有勾选py luncher、Associate files with Python (requires the by luncher)

手动修改下默认程序就好了,不知道为什么没有默认让主程序打开,在安装程序里面也没有,后来浏览的
作者: ge    时间: 2022-7-24 12:25
不知道为什么怎么出现两个一样的,后面那个是自己浏览到的,前面那个是安装完成后默认的,前面的就不能用,后来的就正常了,不知道怎么回事

作者: nttwqz    时间: 2022-7-24 12:33
话说,刷机还用的到Python?刷机脚本用Python写的?
作者: ge    时间: 2022-7-25 12:33
nttwqz 发表于 2022-7-24 12:33
话说,刷机还用的到Python?刷机脚本用Python写的?

不是,是https://www.xda-developers.com/b ... cation-requirement/




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3