Python version 2.6 required, which was not found in the registry

前端 未结 9 2014
暖寄归人
暖寄归人 2020-12-01 04:24

Can\'t download any python Windows modules and install. I wanted to experiment with scrapy framework and stackless but unable to install due to error \"Python version 2.6 re

相关标签:
9条回答
  • 2020-12-01 04:39

    This error can occur if you are installing a package with a different bitness than your Python version. To see whether your Python installation is 32- or 64-bit, see here.

    0 讨论(0)
  • I recently encountered a similar problem,of registry not being found when i was downloading the pyreader library .So i ran this script http://effbot.org/zone/python-register.htm.After running the script I got this remark from the IDLE.

    *** Unable to register!

    *** You probably have another Python installation!

    (which meant the script was unable to help me)

    So thought lets copy the exe file in LIB folder of python directory and after that installation was done in seconds

    0 讨论(0)
  • 2020-12-01 04:40

    For me this happens on a 32 bit system with activepython installed. It seams that the regs are not in HKEY_CURRENT_USER so here is what I do to fix that.

    1. Export the "Python" section under HKEY_LOCAL_MACHINE -> Software
    2. Open the export in notepad notepad. Replace "LOCAL_MACHINE" with "CURRENT_USER"
    3. Since I have 2.7 installed I also had to replace "2.7" with "2.6" (make sure that you do not affect the path which points to the installation of python).
    4. Over write the reg backup and run it.

    Now if you run the installation of whatever package you needed it will find python. This helped in my case but be aware that it might not work for you.

    0 讨论(0)
  • 2020-12-01 04:41

    I realize this question is a year old - but I thought I would contribute one additional bit of info in case anyone else is Googling for this answer.

    The issue only crops up on Win7 64-bit when you install Python "for all users". If you install it "for just me", you should not receive these errors. It seems that a lot of installers only look under HKEY_CURRENT_USER for the required registry settings, and not under HKEY_LOCAL_MACHINE. The page linked by APC gives details on how to manually copy the settings to HKEY_CURRENT_USER.

    Or here's the PowerShell command to do this: cp -rec HKLM:\SOFTWARE\Python\ HKCU:\SOFTWARE

    0 讨论(0)
  • 2020-12-01 04:47

    On Feb 14 marblecatdog posted a comment to the posted answer by Andrew. I want it to be found more easily as I see several people recently getting similar trouble. This is a very likely solution for many installs. Per marblecatdog ..

    I was having the same error as the poster, and this worked perfectly and flawlessly for me in windows 7 64 bit. Just uninstall python, and reinstall "for just me".

    The Cause Of it All In a Nut: installed python "for all users".

    Apparently, there's many python add-on, of which pyjs is one, that do not search the windows registry for the "all users" programs entries. I nearly always install for all.

    My Own Problem: installing windows COM files required by python GUI add-on pyjs.

    I was looking pretty desperate yesterday having invested much time and hope in pyjs. It requires "comtypes" which the windows installer for those spit up with "No Python installation found in the registry". Reinstalled python 2.7 just for me and the com-installer.exe had NO ISSUES.

    0 讨论(0)
  • 2020-12-01 04:52

    maybe your installer is i386 and your computer is AMD64. try to find the right package!

    0 讨论(0)
提交回复
热议问题