1.Python运行环境罢工
今天,要运行一个前年用python编写的爬虫程序,先检测python运行环境是否正常:
D:\Python38-32\works>c:\windows\py.exe
Can't find a default Python.
再试:
D:\Python38-32\works>py --list
Installed Pythons found by py Launcher for Windows
No Installed Pythons Found!
2、尝试修复文件关联信息
C:\WINDOWS\system32> assoc .py=Python.File
C:\WINDOWS\system32>ftype Python.File="Python38-32\pyth