I am using PyCharm. I have a python script in the following location:
C:\Users\XYZ\PycharmProjects\Project1\playground.py
playground.py
only has a line of code as shown below:
import PyTbl
In the Project1
folder there's another file:
C:\Users\XYZ\PycharmProjects\Project1\PyTbl.pyd
When I run the Python script playground.py
I get the following error:
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "C:/Users/XYZ/PycharmProjects/Project1/playground.py", line 1, in <module>
import PyTbl
SystemError: initialization of PyTbl raised unreported exception
If I hover my mouse over the line of Python code in playground.py
in the PyCharm editor I get the following error message:
"No module named PyTbl"
Any idea how should I import a .pyd
file into a Python script?