打开notepad输入以下内容
reg add "HKLM\Software\Python\PythonCore\2.7\Help\Main Python Documentation" /reg:64 /ve /t REG_SZ /d "C:\Python27\Doc\ActivePython27.chm"
reg add "HKLM\Software\Python\PythonCore\2.7\InstallPath" /reg:64 /ve /t REG_SZ /d "C:\Python27\"
reg add "HKLM\Software\Python\PythonCore\2.7\InstallPath\InstallGroup" /reg:64 /ve /t REG_SZ /d "Python 2.7"
reg add "HKLM\Software\Python\PythonCore\2.7\PythonPath" /reg:64 /ve /t REG_SZ /d "C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk"
修改C:\Python27\为你的实际Python安装路径
如果是其他Python版本,则修改2.7为你的实际Python版本号
然后保存为111.bat
运行111.bat。
即可解决。