microacup / microacup.github.com

长者的经验
0 stars 1 forks source link

Python使用exe安装第三方包时,找不到版本的解决方案。 #35

Open microacup opened 9 years ago

microacup commented 9 years ago

This steps work for me with windows 8.1 64bits

The problem is that some module installers look in the wrong place for Python version information.

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.

I found that my Python 3.4 installer had placed this information in HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.2 instead.

Once you know the reason, solving it is easy.

Open Registry Editor (may need administrator privilege) and export HKEY_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.

Add these new entries back to the registry (here is how). The module installer should now be able to proceed without throwing the error.

ref: http://choorucode.com/2012/04/28/python-version-not-found-in-registry-error/