Python Forum
PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0 (/thread-25528.html)



PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0 - SarmadiRizvi - Apr-02-2020

Hello Dear Members!

I have on my system (windows 10) Visual C++ redistributable package 2019 running. Now when I wrote this statement - import mysql.connector- in Pycharm, it showed an error "no module named mysql" and suggested me to install mysql package. When I tried to install it, another error message came up that I need to install Visual C++ redistributable package 14.0. I already have vc++ 2019 installed that covers all its previous versions.

How should I solve this problem?

Thanks in advance.


RE: PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0 - snippsat - Apr-02-2020

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.
pip install mysql_connector_python-2.0.4-py2.py3-none-any.whl
A 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