如果我们尝试在没有安装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版本的程序时,如果计算机...
首先检查你的系统位数,位数不同,解决方案不一样。 1)32位系统:在cmd输入regedit然后将HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath路径下的值,复制到HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下,当然没有路径的话一定要新建起来。然后就可以安装了。本解决方案...
CloseKey(reg)except:print"*** Unable to register!"returnprint"--- Python", version,"is now registered!"returnif(QueryValue(reg, installkey) == installpathandQueryValue(reg, pythonkey)==pythonpath): CloseKey(reg)print"=== Python", version,"is already registered!"returnCloseKey(reg)print"*...
version = sys.version[:3] installpath = sys.prefix regpath = "SOFTWARE\\Python\\Pythoncore\\%s\\" % (version) installkey = "InstallPath" pythonkey = "PythonPath" pythonpath = "%s;%s\\Lib\\;%s\\DLLs\\" % ( installpath, installpath, installpath ) def RegisterPy(): try: reg =...
“Python version 2.7 required, which was not foundin the registry” 的问题,如下图: 网上搜了下,原来是因为安装Python的时候使用了all users可用的选项,如果选择仅本用户可用便不会出现这个问题,但是难道要重装?于是又找到了方法,便是将以下脚本保存,并运行,即可顺利解决问题,脚本代码如下(发现51cto的代码块不...
本文摘要:本文已解决 ERROR: Could not find a version that satisfies the requirement的相关报错问题,并总结提出了几种可用解决方案。同时结合人工智能GPT排除可能得隐患及错误。 一、Bug描述 在使用 pip 进行Python包安装时,我们可能会遇到一个令人困惑的错误:ERROR: Could not find a version that satisfies the...
在使用Python的pip包管理器安装第三方库时,有时会遇到一个错误,提示无法找到名为re的库,并显示错误信息:“ERROR: Could not find a version that satisfies the requirement re (from versions: none) ERROR: No matching distribution found for re”。实际上,这是一个误解,因为re模块是Python标准库的一部分,而...
ERROR: Could not find a version that satisfies the requirement xxxx(from versions: none)ERROR: No matching distribution found for xxxx 不止要选择pip源,还要信任它的来源,只完成第一步是不可以的喽 pip install fonttools -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 敲以上...
模块能定义函数,类和变量,模块里也能包含可执行的代码。python的模块安装方法一般是:pip install requests使用 pip install xxx 安装,有时候会遇到下面的错误:ERROR: Could not find a version that satisfies the requirement xxxx(from versions: none)ERROR: No matching distribution found for xxxx这个错误看...
在安装Python第三方库时,有时会遇到找不到特定版本或依赖的问题。本文将针对'ERROR: Could not find a version that satisfies the requirement pytest-assume'这个错误,提供可能的解决方案。