Python Forum
PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0
#1
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.
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  class and runtime akbarza 4 352 Mar-16-2024, 01:32 PM
Last Post: deanhystad
  painfully slow runtime when handling data dadazhu 3 957 Jan-20-2023, 07:11 PM
Last Post: snippsat
  Big O runtime nested for loop and append yarinsh 4 1,369 Dec-31-2022, 11:50 PM
Last Post: stevendaprano
  Reducing runtime memory usage in Cpython interpreter david_the_graower 2 2,215 Oct-18-2021, 09:56 PM
Last Post: david_the_graower
  Object reference in Dict - not resolved at runtime benthomson 2 1,830 Apr-02-2020, 08:50 AM
Last Post: benthomson
  pycharm cannt find dlib which is installed kevinlee325 2 4,286 Oct-15-2019, 04:56 AM
Last Post: kevinlee325
  EOFError: EOF when reading a line - Runtime Error RavCOder 6 9,645 Sep-27-2019, 12:22 PM
Last Post: RavCOder
  Different runtime programs mhvozdesky 1 41,804 Oct-24-2018, 02:50 PM
Last Post: ichabod801
  PyDev package install/download at runtime user2103 0 2,470 Jan-30-2018, 08:39 AM
Last Post: user2103
  Question on runtime and improving nested for loops ackmondual 1 3,039 Jun-13-2017, 11:11 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020