Get rid of pyximport
The problem appeared in Spyder because the package's initialization actually loads pyximport
and calls pyximport.install()
, in the file utils/site/sitecustomize.py.
Other have complained about it on GitHub:
- spyder issue #5299
- spyder issue #5087
A solution that is not elegant (will not survive updates of spyder, for instance) but that should work is to manually edit the sitecustomize.py file in your spyder installation and remove the section under if HAS_PYXIMPORT:
(Spyder maintainer here) This problem was fixed in our 3.2.8 version, released on March 2018.