I also deleted the binaries and did a repair. Well I know I tried the installation and uninstallation multiple times. I once had to do something similar and there have been similar reports on python-list.
There might be an error log somewhere, but the likely fix is to remove your current 2.7.z and re-try 2.7.8 install, possibly after re-downloading. I downloaded the 2.7.8 64-bit msi, installed over 2.7.7, and indeed got 2.7.8, which inports hmac fine.Īndreas, did you have 2.7.5/6 installed before? If so, I strongly suspect that the installer did not run (correctly). A few questions to try to narrow things down:ġ) Did you already have a version of Python installed, what version, and where?ģ) What output do you get from "where python"?Ĥ) In addition to sys.executable that Martin asked for, what values do you have for sys.prefix and sys.path? This seems very odd I'm skeptical that this is a bug with Python or its installer.
Most of the time to get things to run you can just delete the import line if you can make sure not to call pare_digest.Įven though I install 2.7.8 msi the python command line says that it's running 2.7.5 The problem is that the builtin version of the operator module (which incidentally is not loaded from a pyd or pyc file (meaning it's inside of either python27.dll or python.exe doesn't contain _compare_digest.) I saw some posts out there indicating it had something to do with django or something related, but when I run python -v I can see that it's only involving local python libraries (in fact no site-packages at all) ImportError: cannot import name _compare_digest Type "help", "copyright", "credits" or "license" for more information.įile "C:\prototype\Tools\python27\lib\ hmac.py", line 8, in įrom operator import _compare_digest as compare_digest Messages (21)Īuthor: Andreas Richter (Andreas.Richter) Python windows 2.7.8 64-bit did not installĪndreas.Richter,, loewis, terry.reedy, vstinner, zach.wareĬreated on 11:32 by Andreas.Richter, last changed 14:58 by admin.