Reputation: 48616
I have some (not so) old code in which I use pyximport
, but the code fails right at
import pyximport; pyximport.install()
with
ImportError: No module named pyximport
I've made a few changes to my system since I last ran this code, so perhaps it was removed or not migrated; but I can't find this package anywhere and
pip search pyximport
yields no results.
What happened to pyximport
? Where can I find it and, failing that, what should I use instead?
Upvotes: 15
Views: 18049
Reputation: 42520
pyximport is a part of cython.
$ pip install cython
You can find the description of it here. In short, pyximport provides an import hook which allows you to import cython files (and compile them) as though they were python.
Upvotes: 32