How to Solve NameError: name 'compiled' is not defined -- jedi

Solution: Import the 'compiled' module

# Add the following line to the top of your code
from jedi.inference import compiled

 

For more information:
jedi compiled