Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Python version 2.7 required, which was not found in the registry" error when attempting to install netCDF4 on Windows 8

I use Anaconda 1.7, 32 bit. I downloaded the correct version of the netCDF4 installer from here.

I attempted to copy the HKEY_LOCAL_MACHINE\SOFTWARE\Python folder into HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. No luck.

Does anyone have any idea why this might be happening? Anaconda installed in the default location, C:/.

Yes, I know Anaconda has netCDF4 in the packages list - but if you look closely, it's only offered for Mac and Linux.

like image 437
bogdan Avatar asked Oct 03 '13 21:10

bogdan


People also ask

How do I add Python 2.7 to registry?

Open Command Prompt as Administrator. Copy this: reg add HKLM\SOFTWARE\Python\PythonCore\2.7\InstallPath /ve /t REG_SZ /d "C:\Python27" /f and tailor for your specifications. Right click and paste the tailored version into Command Prompt and hit Enter!


1 Answers

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.

Some superpacks (e.g. for Scipy) available on SourceForge or python.org are for 32-bit systems and some are for 64-bit systems. See this answer. In Windows, uninstalling the 32-bit and installing the 64-bit version (or vice versa if your installation is 32-bit) can solve the problem.

like image 151
1'' Avatar answered Sep 23 '22 10:09

1''