Table of Contents • • • • • • • • • • • • • • Prerequisites before installing MySQL Connector Python • You need root or administrator privileges to perform the installation process. • Python must be installed on your machine. Note: – MySQL Connector Python requires python to be in the system’s PATH. Installation fails if python cannot be located. • On Unix and Unix-like systems, python is normally located in a directory included in the default PATH setting. • On Windows, If python doesn’t in the system’s PATH please manually add the directory containing python.exe yourself. This article applies to Platform(s): 64-bit Windows, Windows 10, Windows 7, Windows 8, Windows Vista, Windows XP, Linux, Ubuntu Linux, Debian Linux, SUSE Linux, Red Hat Linux, Fedora, MacOs. Python version(s): Python 2 and 3 MySQL Version(s): Greater than 4.1 Different ways to install MySQL Connector Python There are multiple ways to install Oracle’s MySQL Connector Python on your machine. Following are the few ways. • Install MySQL Connector Python using pip command • Install MySQL connector python via source code (via ZIP or TAR file) • Use Built Distribution A package created in the native packaging format intended for a given platform. Make a note of this password (without the spaces) and use this as the password when adding a new account to Outlook. • Yahoo will display an app password for you. Update servers on outlook for mac 2011. • Go to the website from your browser and enter your Apple ID and password. Python -m pip install SomePackage==1.0.4 # specific version python -m pip install 'SomePackage>=1.0.4' # minimum version Normally, if a suitable module is already installed, attempting to install it again will have no effect. Download windows 8 vm on virtualbox for mac mac. Example, RPM packages for Linux or MSI installer for windows Python MySQL Connector Versions Please refer to the following table of MySQL connector python versions. You need to install a module which is compatible with your python version. Connector/Python Version MySQL Server Versions Supported Python Versions 8.0 (continuation of 2.2) 8.0, 5.7, 5.6, 5.5 3.6, 3.5, 3.4, 2.7 2.2 5.7, 5.6, 5.5 3.5, 3.4, 2.7 2.1 5.7, 5.6, 5.5 3.5, 3.4, 2.7, 2.6 2.0 5.7, 5.6, 5.5 3.5, 3.4, 2.7, 2.6 1.2 5.7, 5.6, 5.5 (5.1, 5.0, 4.1) 3.4, 3.3, 3.2, 3.1, 2.7, 2.6 Great! Now I will show you all the three ways to install it, you can choose as per your need. Pip Command to install MySQL Connector python It is always easy and simple to install any module using pip in python. MySQL Connector Python is available on pypi.org so you can install using pip command. Using pip command you can install MySQL Connector python on any operating system platform including Windows, MacOs, Linux, and Unix and Ubuntu. Use the following pip command to install MySQL Connector python. Pip install mysql-connector-python If you are facing any problem while installing please mention the version of the module and then try to install again. Refer to the above table to install the correct version. Pip install mysql-connector-python==8.0.11 If you are facing pip install fails error with “connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)”. You can solve this error. You can ignore SSL errors by setting pypi.org and files.pythonhosted.org as trusted hosts. Please try following pip command to install MySQL Connector Python. Python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org mysql-connector-python Verifying MySQL Connector Python installation is completed using pip You should get the following messages after running pip command • Collecting mysql-connector-python • Downloading packages. • Requirement already satisfied: setup tools in D:python python37-32 lib site-packages. • Installing collected packages: mysql-connector-python • Successfully installed mysql-connector-python-8.0.13 The best way to verify this by If you are unable to install using pip you can install using the following approaches. Download and Install MySQL Connector Python on Windows There are two ways to install MySQL Connector Python on windows. • Install using Source Code Distribution ( Platform Independent and Architecture Independent ZIP Archive) • Install using Built Distribution i.e. MSI installer Install MySQL Connector Python on Windows using a Source Code Distribution:- Follow below instruction to download Platform Independent ZIP. Go to download MySQL connector python for windows • This will automatically open the latest version of MySQL Connector Python. ![]() ![]() • If you want to use the older version which is compatible with your python version then select “ Looking for previous GA versions” option which you can find at the right side. • if you want to check which version of MySQL Connector Python is compatible for your python version refer the above table. I am downloading 2.1.7 because I am using Python 3.5. Select Platform independent from the drop-down list select MySQL connector python platform independent zip for windows Click on “download” button to download ZIP file on your machine. After clicking on download you get the below screen, Click on No Thanks, start the download option.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |