numpy python 3.4.1 安装:在注册表中找不到 Python 3.4
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24676609/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
numpy python 3.4.1 installation: Python 3.4 not found in registry
提问by ifyalciner
I have two python versions on my computer 2.7 and 3.4.1 . I have tried to install numpy by pip3.4 which resulted with vcvarsall.batnot found which i am pretty sure it is included in system path. Then i gave up downloaded numpy binary numpy-1.8.1-win32-superpack-python3.4.exe. And during the installation it tells me that numpy cannot find python 3.4 in the registry which i see that it is there also.
我的电脑上有两个 python 版本 2.7 和 3.4.1 。我试图通过 pip3.4 安装 numpy,这导致找不到 vcvarsall.bat,我很确定它包含在系统路径中。然后我放弃了下载的 numpy 二进制numpy-1.8.1-win32-superpack-python3.4.exe。在安装过程中,它告诉我 numpy 在注册表中找不到 python 3.4,我看到它也在那里。
HKEY_LOCAL_MACHINE -SOFTWARE --Python ---PythonCore ----2.7 -----Help -----InstallPath -----Modules -----PythonPath ----3.4 -----Help -----InstallPath -----Modules -----PythonPath
HKEY_LOCAL_MACHINE -SOFTWARE --Python ---PythonCore ----2.7 -----Help -----InstallPath -----Modules -----PythonPath ----3.4 -----Help -----InstallPath -----Modules -----PythonPath
so what has left me to do from here? My system is windows 7 64 bit.
那我还有什么可做的呢?我的系统是 windows 7 64 位。
采纳答案by Ffisegydd
When installing numpy on Windows you have to ensure that you are using a .exe
for the corresponding Python installation.
在 Windows 上安装 numpy 时,您必须确保您使用的.exe
是对应的 Python 安装。
As you're using Python 3.4.1 you have to use an installer for Python 3.4.1. The installer that you were using was last modified on 25th March which is before 3.4.1 was released. This suggests it was for 3.4.0 and so will not work.
当您使用 Python 3.4.1 时,您必须使用 Python 3.4.1 的安装程序。您使用的安装程序最后一次修改是在 3 月 25 日,也就是 3.4.1 发布之前。这表明它适用于 3.4.0,因此不起作用。
If you need up-to-date Windows installers for numpy (as well as a large host of other packages) they can be found here.
如果您需要 numpy(以及大量其他软件包)的最新 Windows 安装程序,可以在此处找到它们。
回答by Abilio Faria
I have just faced a similar issue ("numpy cannot find python 3.4 in the registry") when installing numpy-1.9.1-win32-superpack-python3.4.exe. The solution was to install the python-3.4.2.msi instead of python-3.4.2.amd64.msi.
我刚刚在安装 numpy-1.9.1-win32-superpack-python3.4.exe 时遇到了类似的问题(“numpy 在注册表中找不到 python 3.4”)。解决方案是安装 python-3.4.2.msi 而不是 python-3.4.2.amd64.msi。
回答by Samuel Pinto
This steps work for me with windows 8.1 64bits
此步骤适用于 Windows 8.1 64 位
The problem is that some module installers look in the wrong place for Python version information.
问题是一些模块安装程序在错误的地方寻找 Python 版本信息。
For example, in the case of this one module, the installer was looking for HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.4
in the registry.
例如,在这个模块的情况下,安装程序正在HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.4
注册表中查找。
I found that my Python 3.4 installer had placed this information in HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.2
instead.
我发现我的 Python 3.4 安装程序已将这些信息放入其中HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.2
。
Once you know the reason, solving it is easy.
一旦知道原因,解决它就很容易了。
Open Registry Editor (may need administrator privilege) and exportHKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.4
into a text file.
Open the exported .reg file in a text editor and replace the HKEY_LOCAL_MACHINE
entries to HKEY_CURRENT_USER
.
打开注册表编辑器(可能需要管理员权限)并导出HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.4
为文本文件。在文本编辑器中打开导出的 .reg 文件并将HKEY_LOCAL_MACHINE
条目替换为HKEY_CURRENT_USER
.
Addthese new entries back to the registry (here is how). The module installer should now be able to proceed without throwing the error.
将这些新条目添加回注册表(方法如下)。模块安装程序现在应该能够继续而不会抛出错误。
ref: http://codeyarns.com/2012/04/28/python-version-not-found-in-registry-error/
参考:http: //codeyarns.com/2012/04/28/python-version-not-found-in-registry-error/
回答by Francois
You are trying to install the 32 bit version of numpy on a 64 bit installation of python. It doesn't look to me like you can download 64bit scipy from sourceforge so a solution is to install a 32bit version of python.
您正在尝试在 64 位安装的 python 上安装 32 位版本的 numpy。在我看来,您不能从 sourceforge 下载 64 位 scipy,因此解决方案是安装 32 位版本的 python。
Abilio Faria gave the answer. Another answer in another thread over here
阿比利奥·法利亚给出了答案。另一个线程在这里的另一个答案
回答by user4493094
There is an easier fix, remove and re-install python, in the beginning of python setup when you are asked if you want to install python for all users or just this user, select this user only. That way the registry goes into current user by default and can be found easily by successive software packages. Tried it myself, worked like a charm. Just a simpler option for technologically less literate people like myself. But if you need it for multiple users on a PC then you have got to edit the registry and put it in manually, from local machine to current user. Copy it like explained in previous comments.
有一个更简单的修复,删除并重新安装 python,在 python 设置的开始,当你被问到是为所有用户安装 python 还是只为这个用户安装 python 时,只选择这个用户。这样注册表默认进入当前用户,并且可以通过后续软件包轻松找到。自己尝试过,效果很好。对于像我这样技术水平较低的人来说,这只是一个更简单的选择。但是,如果您需要为 PC 上的多个用户使用它,那么您必须编辑注册表并手动将其放入,从本地计算机到当前用户。像之前评论中解释的那样复制它。
回答by yitch
I think the changing of the registry works quite well.
我认为更改注册表效果很好。
Worked wonders for me... quick fix: http://codeyarns.com/2012/04/28/python-version-not-found-in-registry-error/
为我创造了奇迹......快速修复:http: //codeyarns.com/2012/04/28/python-version-not-found-in-registry-error/