Python 3.3. not found in registry [duplicate] - python

I am trying to install biopython to run with Python 3.3 on a Windows7 computer.
I have downloaded the biopython executable biopython-1.61.win32-py3.3-beta.exe. When I attempt to run the executable, however, I get the message "Python version 3.3 is required, which is not found in the registry." Python version 3.3 is present on my computer. I have been running programs through it for a month or two. It was installed from the file python-3.3.0.amd64.msi, and is located in the Program Files (x86) directory.I have tried reinstalling Python 3.3 but get the same error message.
Does anyone know how to get around this problem?

Python.org provides Windows installers in two flavours, 32 bit ("win32") and 64 bit ("amd64"). You need matching library installers for your Python version. You are trying to use a 32 bit Biopython installer with a 64 bit Python.
As instructed here http://biopython.org/wiki/Download there are experimental 64 bit Windows installers for Biopython, NumPy, etc here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Or, you can install the 32-bit version of Python 3.3 for Windows, and then use biopython-1.61.win32-py3.3-beta.exe

You can try to solve this problem by fixing a blank option in the Windows registry.
https://stackoverflow.com/a/11507968/3962648 provide details of similar issue when installing numpy.
In short, you can just run the windows command line and type in: "reg copy HKEY_LOCAL_MACHINE\SOFTWARE\Python HKLM\SOFTWARE\Wow6432Node\Python /s"

probelm is windows 64bit and biopython 32bit...
to get the 64bit version of biopython get this one:
http://www.lfd.uci.edu/~gohlke/pythonlibs/

Related

Python 3.5 for 64 bit windows not setting the windows registry correctly

I want to install pySVN(py35-pysvn-svn1814-1.8.0-1667.exe) windows binary kits.But after installing python 3.5(64 bit) on my windows,it is not setting the windows registry correctly.
Im getting the following message,
pysvn requires Python 3.5 to be installed.
Quitting installation
I given PATH correctly and it is working in cmd prompt when i give 'python' there.
How can I solve this issue?
AFAIK pysvn doesn't work with 64 bit Python on Windows. This is because the underlying subversion library is compiled for 32 bit only.
You can get 32 bit Python 3.5 here: https://www.python.org/ftp/python/3.5.0/python-3.5.0.exe

SNAP installation in Python?

I have been trying to install SNAP (http://snap.stanford.edu/snappy/index.html) in Python 2.7.9. I followed the instructions at snap website for installation but unable to import snap package/module.
My system configuration is:
Windows 7 - 64 bit
I'm getting error that DLL load failed %1 is not a valid Win32 application.
Sorry I couldn't upload screenshot of command prompt due stackoverflow policies as i'm new to this forum.
Please help me to solve this issue. I'm new to Python.
Regards,
If there is DLL error only than you can download and install the missing dll file from google and drop it into the installed folder.
You are probably using python 32 bit version which does not work with snap as it quoted here :
Snapy Download page
(Windows 32-bit packages or Python 32-bit will not work). Python 2.7.x can be downloaded from the Python Download page. Make sure that you are using 64-bit Python 2.7.x packages.
To solve the issue, try installing a 64 bit version from here:
Link to download python 2.7 64bit

Installation of biopython - python 3.3 not found in registry

I am trying to install biopython to run with Python 3.3 on a Windows7 computer.
I have downloaded the biopython executable biopython-1.61.win32-py3.3-beta.exe. When I attempt to run the executable, however, I get the message "Python version 3.3 is required, which is not found in the registry." Python version 3.3 is present on my computer. I have been running programs through it for a month or two. It was installed from the file python-3.3.0.amd64.msi, and is located in the Program Files (x86) directory.I have tried reinstalling Python 3.3 but get the same error message.
Does anyone know how to get around this problem?
Python.org provides Windows installers in two flavours, 32 bit ("win32") and 64 bit ("amd64"). You need matching library installers for your Python version. You are trying to use a 32 bit Biopython installer with a 64 bit Python.
As instructed here http://biopython.org/wiki/Download there are experimental 64 bit Windows installers for Biopython, NumPy, etc here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Or, you can install the 32-bit version of Python 3.3 for Windows, and then use biopython-1.61.win32-py3.3-beta.exe
You can try to solve this problem by fixing a blank option in the Windows registry.
https://stackoverflow.com/a/11507968/3962648 provide details of similar issue when installing numpy.
In short, you can just run the windows command line and type in: "reg copy HKEY_LOCAL_MACHINE\SOFTWARE\Python HKLM\SOFTWARE\Wow6432Node\Python /s"
probelm is windows 64bit and biopython 32bit...
to get the 64bit version of biopython get this one:
http://www.lfd.uci.edu/~gohlke/pythonlibs/

enthought python distribution wx

For some reason my 64 bit EPD can't import wx.
I also tried to install the wxPython2.8-osx-unicode-py2.7 version from the wx site.
It installed successfully, but is no where to be found on my harddrive.
I checked the sitepackes for 2.7 and the EPD 7.2.2. where all the modules usually should be installed.
I am confused.
This raises a similar question.
How can I install modules that are not part of EPD ?
I also didn't have luck to install other modules.
And every time I try to import older modules it doesn't work as well.
Often I get error message that architectures in universal rapper is wrong.
For example pygame doesn’t have a 64 bit version that works with 2.7, so I installed the 32 bit version.
If I try to do the trick arch -i386 /Path to python , I get "Bad CPU type in executable".
I am running a 64bit version of Python on a 64 bit Mac OS.
I wonder if the Enthougt 7.2 is equivalent with the 2.7 Python.
And if not, what I assume, what the differences are.
Any hints who can solve this, would be awesome.
Thanks for your patients.
I had the same problem. The only way around it that has worked for me is to uninstall your EPD version ($ sudo remove-EPD-7.2-1, or whichever version you have) and reinstall the 32 bit version. Wx comes as part of the EPD package, so once you have downloaded the 32 bit version there is no need to download and install wx.

Installing SetupTools on 64-bit Windows

I'm running Python 2.7 on Windows 7 64-bit, and when I run the installer for setuptools it tells me that Python 2.7 is not installed. The specific error message is:
`Python Version 2.7 required which was not found in the registry`
My installed version of Python is:
`Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32`
I'm looking at the setuptools site and it doesn't mention any installers for 64-bit Windows. Have I missed something or do I have to install this from source?
Problem: you have 64-bit Python, and a 32-bit installer. This will cause problems for extension modules.
The reasons why the installer doesn't finds Python is the transparent 32-bit emulation from Windows 7. 64-bit and 32-bit programs will write to different parts of the Windows registry.
64-bit: HKLM|HKCU\SOFTWARE\
32-bit: HKLM|HKCU\SOFTWARE\wow6432node\.
This means that the 64-bit Python installer writes to HKLM\SOFTWARE\Python, but the 32-bit setuptools installer looks at HKLM\SOFTWARE\wow6432node\Python (this is handled by windows automatically, programs don't notice). This is expected behavior and not a bug.
Usually, you have these choices:
the "clean" way: use 32-bit Python if you have to use 32-bit modules or extensions
the other "clean" way: only use 64-bit installers when using 64-bit Python (see below)
what the answer above suggests: copy HKLM\SOFTWARE\Python to HKLM\SOFTWARE\wow6432node\Python, but this will cause problems with binary distributions, as 64-bit Python can't load 32-bit compiled modules (do NOT do this!)
install pure Python modules with setuptools instead of the distutils installer (easy_install or pip)
For setuptools itself, for example, you can't use a 32-bit installer for 64-bit Python as it includes binary files. But there's a 64-bit installer at http://www.lfd.uci.edu/~gohlke/pythonlibs/ (has many installers for other modules too). Nowadays, many packages on PyPi have binary distributions, so you can install them via pip.
Apparently (having faced related 64- and 32-bit issues on OS X) there is a bug in the Windows installer. I stumbled across this workaround, which might help - basically, you create your own registry value HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.6\InstallPath and copy over the InstallPath value from HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\InstallPath. See the answer below for more details.
If you do this, beware that setuptools may only install 32-bit libraries.
NOTE: the responses below offer more detail, so please read them too.
I made a registry (.reg) file that will automatically change the registry for you. It works if it's installed in "C:\Python27":
Download 32-bit version HKEY_LOCAL_MACHINE|HKEY_CURRENT_USER\SOFTWARE\wow6432node\
Download 64-bit version HKEY_LOCAL_MACHINE|HKEY_CURRENT_USER\SOFTWARE\
Yes, you are correct, the issue is with 64-bit Python and 32-bit installer for setuptools.
The best way to get 64-bit setuptools installed on Windows is to download ez_setup.py to C:\Python27\Scripts and run it. It will download appropriate 64-bit .egg file for setuptools and install it for you.
Source: http://pypi.python.org/pypi/setuptools
P.S. I'd recommend against using 3rd party 64-bit .exe setuptools installers or manipulating registry
Create a file named python2.7.reg (registry file) and put this content into it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Help]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Help\MainPythonDocumentation]
#="C:\\Python27\\Doc\\python26.chm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath]
#="C:\\Python27\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath\InstallGroup]
#="Python 2.7"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Modules]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\PythonPath]
#="C:\\Python27\\Lib;C:\\Python27\\DLLs;C:\\Python27\\Lib\\lib-tk"
And make sure every path is right!
Then run (merge) it and done :)
Get the file register.py from this gist. Save it on your C drive or D drive, go to CMD to run it with:
'python register.py'
Then you will be able to install it.
For 64-bit Python on Windows download ez_setup.py and run it; it will download the appropriate .egg file and install it for you.
At the time of writing the .exe installer does not support 64-bit versions of Python for Windows, due to a distutils installer compatibility issue.
To allow Windows installers to find the installed Python directory in Windows 7, OR, change which Python installation to install an installer into, add the installed path into the InstallPath registry key's (Default) value:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.X\InstallPath
Where "X" is the Python version (that is, 2.5, 2.6, or 2.7).
I tried the above and adding the registry keys to the LOCALMACHINE was not getting the job done. So in case you are still stuck , try this.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Python]
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore]
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7]
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7\Help]
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7\Help\Main Python Documentation]
#="C:\Python27\Doc\python272.chm"
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7\InstallPath]
#="C:\Python27\"
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7\InstallPath\InstallGroup]
#="Python 2.7"
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7\Modules]
[HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\2.7\PythonPath]
#="C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk"
Copy paste the above in notepad and save it as Python27.reg . Now run/merge the file as mentioned in the answers above. (Make sure the paths of Python installation are corrected as per your installation.
It simply does ,what the above answers suggest for a local machine ,to the current user.
Here is a link to another post/thread. I was able run this script to automate registration of Python 2.7. (Make sure to run it from the Python 2.x .exe you want to register!)
To register Python 3.x I had to modify the print syntax and import winreg (instead of _winreg), then run the Python 3 .exe.
https://stackoverflow.com/a/29633714/3568893
You can find 64bit installers for a lot of libs here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Categories