I’m using Ubuntu 22.04 through WSL 2.0. I have installed Python through Anaconda and am using version 2024.02-1.
I’m currently trying to get up and running with Cython, but I’m having issues. I’m running the basic “Hello World” example from the Cython website (https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html).
One of the files I have is setup.py
which looks like this: .
However, when I run python setup.py build_ext --inplace
, I get an error saying that the Cython.build
module can’t be found. This is strange because I can import cython
absolutely fine.
This page has a lot of suggestions (https://github.com/CellProfiler/centrosome/issues/78), but they all seem to amount to Cython isn’t installed, which isn’t the case for me.
Has anyone else experienced (and fixed) this issue?