安装pyinstaller,打包python文件法一1.打开Windows电脑的cmd(Windows+r)。2.输入pip3install-ihttps://pypi.tuna.tsinghua.edu.cn/simplepyinstaller(这是顺利的情况!)我自己安装的时候就没有这么顺利了,出现了其他情况如图,感觉是版本的问题接下来就按照黄色字体,比如第二行黄色字体说youshould……,就在cmd里输入引号里的部分,就会自己安装。法二1,找到python安装文件位置。2.点击scripts文件,之后按shift,再按鼠标右键,打开powershell窗口3.输入命令.\pip3in