Easiest way to access C module in Python

bartc bc at freeuk.com
Tue Nov 7 08:21:05 EST 2017


On 07/11/2017 13:11, bartc wrote:

>> $ python setup.py build_ext --inplace
> 
> OK, thanks. Although when I get to this bit, my system still says:
> 
> 17.299999999999997
> Traceback (most recent call last):
>    File "setup.py", line 1, in <module>
>      from distutils.core import setup
>   ....

Update: if I copy the relevant files to the actual Python directory (so 
running Python as 'python' rather than '\python34\python'), the problem 
seems to be simply:

  ImportError: No module named 'Cython'

(And trying script\pip install cython generated some promising disk 
activity for about a minute but then loads of errors, although no 
definitive message about whether it installed Cython or not. But since 
it still can't import the Cython module, I guess it didn't.)

-- 
bartc



More information about the Python-list mailing list