I just also encountered a speed-up build error
File "/tmp/pycharm-professional/src/pycharm-2024.3.2/./plugins/python-ce/helpers/pydev/setup_cython.py", line 111, in build_extension
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
took me a while to figure out that I still had the legacy cython0 installed. Using the normal cython instead solved the issue for me. (Thought I'd share this and save somebody else the debugging time.)
Pinned Comments
Meaulnes commented on 2026-03-27 16:37 (UTC)
This comment from @AvacadoCookie should be pinned, IMO.
If anyone is getting errors about
Cythonorsetuptools, and they are usingConda, that comment has the answer.If anyone is getting errors about
Cythonorsetuptools, and they are usingpyenv, there are 2 possible ways to fix it:pyenv local systemto set Python back to the system installed Python for this session.pip install Cython setuptoolsto install the necessary packages to your preferred python installation.AvocadoCookie commented on 2025-12-14 16:22 (UTC)
For all users with
ModuleNotFoundError: No module named 'Cython'or'setuptools'reported, please try the following methods to address the problem:condaenvironment. Now afterwhich pythontyped in console, the output should be/usr/bin/python.pacman -S cython python-setuptools.