Python Forum

Full Version: Compiling on win10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to compile a test.py file on Windows 10 but the compiler cannot find the module Cython when it's installed.
I ran the cmd terminal w/o admin credentials with no avail.

What am I doing wrong?
TIA


C:\SharedFiles\Python\Cython>python3 compile.py build_ext --inplace
Traceback (most recent call last):
  File "compile.py", line 3, in <module>
    from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'

C:\SharedFiles\Python\Cython>cython -V
Cython version 0.29.21

C:\SharedFiles\Python\Cython>
compile.py:

#!/usr/bin/env python
from setuptools import setup
from Cython.Build import cythonize

setup(
    ext_modules=cythonize('sql.py')
)
Solved by adding Cython to win PATH.