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

Solution: Import the 'sys_path' module

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

 

For more information:
jedi sys_path