【转载】Python Version 2.7 required which was not found in the registry 问题解决

 

Python Version 2.7 required which was not found in the registry 问题解决

分类: 编程语言

今天在安装numpy时,出现了Python Version 2.7 required which was not found in the registry错误,解决方案如下。

 

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.7\InstallPath路径下的值,复制到HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下,当然没有路径的话一定要新建起来。

然后就可以安装了。

本解决方案适用于安装numpy,SetupTools等只提供了32位安装包的库。

posted @ 2015-08-11 16:02  张旭龙  阅读(211)  评论(0)    收藏  举报