Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling on win10
#1
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')
)
Reply
#2
Solved by adding Cython to win PATH.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  'Un-compiling' an .exe ? Stephen_8069 1 310 Apr-07-2025, 11:54 AM
Last Post: buran
  Where does pip auto install on Win10 with py 3.9.4? Fran_3 4 4,904 May-05-2021, 03:47 PM
Last Post: snippsat
  Compiling (PyInstaller issues) TheHolyPyGrenade 1 2,576 Apr-11-2021, 08:30 PM
Last Post: snippsat
  Compiling SlicerCAT flaviu2 1 2,552 Sep-21-2020, 08:38 AM
Last Post: buran
  Compiling to windows installer DT2000 1 2,073 May-04-2020, 09:17 PM
Last Post: DT2000
  Error building wheel for grpcio on win10 Topiii 1 6,112 Nov-13-2019, 03:08 PM
Last Post: snippsat
  Development Server Problem (Win10) SMY1 0 2,383 Apr-26-2019, 06:25 PM
Last Post: SMY1
  Compiling python CommanderCody66 7 148,367 Apr-19-2019, 08:12 PM
Last Post: snippsat
  Having Trouble Compiling From Source (3.7.2) pnicolosi78 6 10,064 Feb-06-2019, 07:24 PM
Last Post: nilamo
  compiling python using pyinstaller sabeesh90 0 3,291 Aug-16-2018, 09:58 AM
Last Post: sabeesh90

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020