This can come from different sources, the main ones are listed below:
First source: C ++ compiler
You probably don't have the Microsoft Visual C ++ compiler.
Download Microsoft Visual C ++ 2015 and install it.
Then restart Pycharm and make sure your problem is resolved.
Second source: conflicts with other packages
If you use Anaconda, you probably have the SQLAlchemy package installed, which already contains instances of sql connectors (for example, pyodbc.py, cx_oracle.py, ...). Removing SQLAlchemy from the project interpreter package listed (for PyCharm, go to File → Preferences → Project Translator) will help resolve conflicts with file names.
The following post will also help you solve your problem: Deploying cx_Oracle on Windows
Basically, the answer lists 4 different sources of the problem (including the missing C ++ compiler or the need to install the Oracle client).
source share