Kartman19
Kartman19

Reputation: 31

ImportError: No module named 'Cython' when installing Cython on mac for darkflow

I'm trying to install darkflow on my mac and I've already downloaded cython extensions.

I'm trying to use this command on terminal:

python3 setup.py build_ext --inplace
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from Cython.Build import cythonize
ImportError: No module named 'Cython'

Any ideas how to fix this error?

Upvotes: 3

Views: 8774

Answers (1)

Savio
Savio

Reputation: 101

Try using

pip install cython

OR

You can download the latest Cython release from http://cython.org. Unpack the tarball or zip file, enter the directory, and then run:

python setup.py install

Hope it works!

Upvotes: 4

Related Questions