What version of Python and pip?
To compile need same correct Visual C++ version that python used to compile and a compiler,this can be tricky to setup.
Use wheel at gohlke,then all this is done.
To compile need same correct Visual C++ version that python used to compile and a compiler,this can be tricky to setup.
Use wheel at gohlke,then all this is done.
pip install mysql_connector_python-2.0.4-py2.py3-none-any.whlA test for me with 3.7 and pip 20.0.2,it install without asking for Visual C++
(forum_env) C:\code\forum_env λ pip -V pip 20.0.2 from c:\code\forum_env\lib\site-packages\pip (python 3.7) # Install (forum_env) C:\code\forum_env λ pip install mysql-connector Collecting mysql-connector Downloading ..... Successfully installed mysql-connector-2.2.9 # Test (forum_env) C:\code\forum_env λ python Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import mysql.connector >>> >>> mysql.connector.__version__ '2.2.9' >>> exit() (forum_env) C:\code\forum_env