I have downloaded mysql-connector-python-1.0.7-py2.7.msi from MySQL site and try to install but it gives error that
Python v2.7 not found. We only support Microsoft Windows Installer(MSI) from python.org.
I am using Official Python v 2.7.3 on windows XP SP3 with MySQL esssential5.1.66
Need Help ???
In my case, I installed python 2.7.14 x64 only for my user. I have to look for this in my registry:
, export them, open the exported
.reg
file with a text editor, replace all occurrence ofHKEY_CURRENT_USER
withHKEY_LOCAL_MACHINE
, and import it.The result is: (remember to change the install dir to yours)
And the installation afterwards is smooth as a breeze. Viola!
You need to make sure that you download the version with the correct "bitness" (32/64 bit), matching the "bitness" of your Python installation!
I ran into the same problem (with Python 3.7.2, though).
I had Python 3.7.2 32 bit already installed, but accidentally downloaded the 64 bit version of the MySQL Connector for Python 3.7.
When I tried to install the connector, I got the same error message:
Solution: I just downloaded the 32 bit version instead, and everything worked (installing the connector and actually connecting to the database)
I met the similar problem under Windows 7 when installing
mysql-connector-python-1.0.7-py2.7.msi
andmysql-connector-python-1.0.7-py3.2.msi
.After changing from
"Install only for yourself"
to"Install for all users"
when installing Python for windows, the"python 3.2 not found"
problem disappear andmysql-connector-python-1.0.7-py3.2.msi
was successfully installed.I guess the problem is that mysql connector installer only looks for
HKEY_LOCAL_MACHINE
entries, and the things it looks for might be underHKEY_CURRENT_USER
etc. So the solution that change the reg table directly also works.If you're still experiencing this with
x64
or other python modules, I'd recommend this website Python Extensions for x64/x32The Solution I get for this problem is
I have found Adding Python to Registry, the script as follows applicable for python v 2.0 and above: Register a Python Interpreter
Save it with any name. Run it from python interpreter and Thats ALL!!
I solved this problem by using 32bit python