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
  Where does pip auto install on Win10 with py 3.9.4? Fran_3 4 3,527 May-05-2021, 03:47 PM
Last Post: snippsat
  Compiling (PyInstaller issues) TheHolyPyGrenade 1 1,925 Apr-11-2021, 08:30 PM
Last Post: snippsat
  Compiling SlicerCAT flaviu2 1 1,865 Sep-21-2020, 08:38 AM
Last Post: buran
  Compiling to windows installer DT2000 1 1,570 May-04-2020, 09:17 PM
Last Post: DT2000
  Error building wheel for grpcio on win10 Topiii 1 5,221 Nov-13-2019, 03:08 PM
Last Post: snippsat
  Development Server Problem (Win10) SMY1 0 1,955 Apr-26-2019, 06:25 PM
Last Post: SMY1
  Compiling python CommanderCody66 7 112,350 Apr-19-2019, 08:12 PM
Last Post: snippsat
  Having Trouble Compiling From Source (3.7.2) pnicolosi78 6 8,607 Feb-06-2019, 07:24 PM
Last Post: nilamo
  compiling python using pyinstaller sabeesh90 0 2,666 Aug-16-2018, 09:58 AM
Last Post: sabeesh90
  win10 Service(script) start and stop hwa_rang098tkd 0 2,465 Jun-21-2018, 07:42 PM
Last Post: hwa_rang098tkd

Forum Jump:

User Panel Messages

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