I’m running a Jupyter notebook window on VSCode using Python 3.10.11. I’m trying to import a .pyx file, so that I can use the functions defined in it, using
import pyximport
pyximport.install()
from function_file import function_1
I get a long error but there seems to be two key parts:
CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
ImportError: Building module function_file failed: ["distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2n"]