How to install mysql-connector-python on mac

Note that installation of mysql-connector-python failed from pip on Mac

$ pip search mysql
mysql-connector-python (2.0.4)         - MySQL driver written in Python
  #I thought I could install it because it came out after searching

$ pip install mysql-connector-python==2.0.4
Collecting mysql-connector-python==2.0.4
  Could not find a version that satisfies the requirement mysql-connector-python==2.0.4 (from versions: )
No matching distribution found for mysql-connector-python==2.0.4
  #I got an error because it was in the search results but it was not prepared for Mac.
  #Same even if the version is not specified
  #It may depend on the version of Python you are deploying.(I am python2.7.Confirm at 10)

There was a person who had a similar clogging, so if you imitate it, it will disappear smoothly (Reference: StackOverFlow --How do you install mysql-connector-python

$  git clone https://github.com/mysql/mysql-connector-python.git
$  cd mysql-connector-python
$  python ./setup.py build
$  sudo python ./setup.py install

$ python
>>> import mysql.connector as msc
>>> msc.__version__
'2.1.3'

Recommended Posts

How to install mysql-connector-python on mac
How to install OpenCV on Mac
How to install drobertadams / toggl-cli on Mac
Steps to install matplotlib on Mac
How to install graph-tool on macOS
How to install VMware-Tools on Linux
How to install pycrypto on Windows
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
How to install Maven on CentOS
Steps to install python3 on mac
How to install Go on Ubuntu
How to install music 21 on windows
How to install Theano on Mac OS X with homebrew
How to install aws-session-manager-plugin on Manajro Linux
[Kivy] How to install Kivy on Windows [Python]
How to erase Python 2.x on Mac.
How to install packages on Alpine Linux
How to install Anisble on Amazon Linux 2
How to install richzhang / colorization on Windows 10
How to install Apache (httpd) on CentOS7
How to install php7.4 on Linux (Ubuntu)
How to install Eclipse GlassFish 5.1.0 on CentOS 7
How to install Apache (httpd) on CentOS8
How to install NumPy on Raspberry Pi
How to install cx_Oracle on macOS Sierra
Install Tensorflow on Mac
Install pyenv on mac
How to install Python
How to install pip
How to install archlinux
Install Ansible on Mac
Install Python on Mac
How to install python
Install Python 3 on Mac
How to install BayesOpt
How to install Nbextensions
Install Python 3.4 on Mac
Install Caffe on Mac
Install mecab on mac
How to install Prover9
Install mecab-python on Mac
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
[2020 version] How to install Python3 on AWS EC2
How to install OpenCV on Jetson Nano Python
How to quickly install h5py on Windows 10 [Unofficial]
How to install OpenGM on OSX with macports
How to install Camunda Modeler on Manjaro Linux
[Python] How to install OpenCV on Anaconda [Windows]
How to install / verify graphviz on anaconda / windows10
How to install Deep Learning framework Caffe on Mac in CPU mode
[2020.8 latest] How to install Python
How to install Python [Windows]
Install pygame on python3.4 on mac
Tabpy 1.0 (2020-01 version) How to install
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
How to register on pypi
Install numba on your Mac
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]