mysql installer fails to recognize python 3.4

落花浮王杯 提交于 2021-02-07 04:45:08

问题


I'm trying to istall mysql server on a windows 7 machine - that has python 3.4.3 installed. However, when trying to install the python connectors for 3.4, the installer fails to recognize the python installation, saying python 3.4 is not installed.

Has anyone solved this issue before? I'ts driving me nuts...


回答1:


Just to add to the murkiness, I had the same error with current version of MySql install when attempting with python 3.5 installed (which is the latest python download). Long story short, I uninstalled python 3.5, installed python 3.4.4 (which interestingly didn't update PATH so I updated it manually) and reran installer and it found the python installation.

So my conclusion is the MySql installer is tied to certain versions of the add-on products which in this case meant specifically python 3.4




回答2:


just in case anyone else has this issue in future. Look at what bit version you have for Python 3.4. When I installed 64 bit version of Python 3.4, this issue went away.




回答3:


I ran into a similar issue with Python 3.7.2.

In my case, the problem was that I tried to install the 64 bit MySQL connector, but had the 32 bit version of Python installed on my machine.

I got a similar error message:

Python v3.7 not found. We only support Python installed using the Microsoft Windows Installer (MSI) [...]

The problem just went away by installing the 32 bit MySQL connector instead.




回答4:


From my experience if you have both Py2.7 and Py3.4 installed when installing the mysql connector for py3.4 you will run into this issue. Not sure of the WHY but for some reason if you have py2.7 installed, the py3.4 mysql connector recognizes that version first and just assumes that you have py2.7 installed and does not recognize that py3.4 is installed.

The only way I have found around this is to uninstall py2.7 and then install the py3.4 mysql connector. You can always install py2.7 again after the fact.




回答5:


I had 3.6.X version and it could not see it; I uninstalled it and installed 3.4.0 version and it passed the requirement. https://www.python.org/downloads/release/python-340/




回答6:


Had the same problem and have fixed it. Using a Windows 7 PC and I already had multiple versions of Python installed.

  1. Uninstalled all versions of Python from my PC
  2. Uninstalled the failed MySQL install
  3. Restarted PC
  4. Re-installed Python 3.7 64-bit (the currently required version for MySQL)

  5. Installed the Python 3.7 MySQL Connector separately through the link below https://dev.mysql.com/downloads/connector/python/

  6. Once that was installed, restarted the MySQL install

  7. The MySQL Installer window will open and already show the Python 3.7 MySQL Connector in the list of products

  8. Click "Add" at the top-right and select all of the products you want and then install them

  9. You should then be able to complete the MySQL setup




回答7:


I was looking for an similar answer. The correct answer is that there is a bug in the mysqlconnector MSI. When python installs, it creates a registry entry under HKLM Software\Python\PythonCore\3.6-32\InstallPath however, the MSI for mysqlconnector is looking for installation path in the registry Software\Python\PythonCore\3.6\InstallPath as part of the RegLocator/registrypath variable.

Use ORCA to edit the MSI, change the RegLocator so that -32 is in the path. It will install now without error or changes to the system.




回答8:


I had same problem with python 3.4, all I did was installed python 3.4 version for all users. and added system variable as per this page. it worked for me!

Hope that helps.




回答9:


Make sure you have the 64bit version of whichever version of Python you are running. It can be downloaded from here: https://www.python.org/downloads/windows/ Just had the same problem and this solved it for me. I also uninstalled all previous versions of Python before running the mysql setup




回答10:


I had this problem until I discovered I had installed python based in another architecture (32b). MySQL required 64 bit.




回答11:


Had the same problem with Python 3.7 when trying to install MySQL in Windows 10. It was fixed by installing the 64-bits version of Python, not selected by default when going to https://www.python.org/downloads/.

I found it in https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe




回答12:


Here is a much simpler work around:

pip install mysql-connector-python

Is the same package that MySQL is having trouble installing. Just use pip to install it.

Next, go back to the installation style and select "Manual" instead of "Developer". They are identical, but "Manual" allows you to remove packages. Just remove the "Connector/Python" package from the list to be installed.

Carry on with the install, you're done.



来源:https://stackoverflow.com/questions/30467495/mysql-installer-fails-to-recognize-python-3-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!