1. 打开注册表:win+R调出运行模块,输入regedit 打开注册表编辑器 2.python的第三方安装模块一般默认在HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下寻找Python的地址,所以首先要检查自己的电脑上有没有该路径,该路径的值是否正确;若没有这个值,则参考HKEY_LOCAL_MACHINE\SOFTWARE\...
首先检查你的系统位数,位数不同,解决方案不一样。 1)32位系统:在cmd输入regedit然后将HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath路径下的值,复制到HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下,当然没有路径的话一定要新建起来。然后就可以安装了。本解决方案...
如果我们尝试在没有安装Python 2.7的计算机上运行这段代码,就会出现“Python version 2.7 required, which was not found in the registry”的错误。 总结 本文介绍了“Python version 2.7 required, which was not found in the registry”错误的原因和解决办法。当我们需要运行需要Python 2.7版本的程序时,如果计算机...
尝试在命令行中直接运行 python2,看是否能够成功执行: 在命令行中输入 python2 并按回车。如果系统能够成功启动 Python 2 的解释器,说明 python2 已经正确安装并配置在环境变量中。 通过以上步骤,您应该能够解决 which failed error: not found: python2 的问题。如果问题仍然存在,请检查是否有其他系统配置或权限...
Python的一些第三方库只到注册表的HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下寻找Python。但是装好的64位Python在HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath路径下建立Python的信息。所以,在cmd输入regedit然后将HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2....
1. 安装MySQL-python-1.2.3.win-amd64-py2.7.exe,时提示:Python version 2.7 required, which was not found in the registry
“Python version 2.7 required, which was not foundin the registry” 的问题,如下图: 网上搜了下,原来是因为安装Python的时候使用了all users可用的选项,如果选择仅本用户可用便不会出现这个问题,但是难道要重装?于是又找到了方法,便是将以下脚本保存,并运行,即可顺利解决问题,脚本代码如下(发现51cto的代码块不...
Python version 2.7 required, which was not found in the registry,安装PIL的时候,不能再注册表中识别出来python2.7在网上找了方法,仅作笔记,供下次使用 方法: 新建一个register.py文件,把一下代码贴进去import sys from _win
Python version 2.7 required, which was not found in the registry,新建一个register.py文件,把一下代码贴进去,保存(G盘) ## script to register Python 2.0 or later for use with win32all# and
which -a python “` This will show all locations where the “python” command is found, such as “/usr/bin/python” and “/usr/local/bin/python”. 4. Checking executable status: The “which” command also checks if a command is executable or not. By using the “-x” option, you ...