'How to run mypyc in Spyder?

How does one install/run mypyc on Anaconda/Spyder? The documentation (https://mypyc.readthedocs.io/en/latest/index.html#) does not address this.



Solution 1:[1]

Try installing a wheel from here: https://github.com/mypyc/mypy_mypyc-wheels/releases

Pick the one for your PC type (Windows, Mac, Linux) then open an Anaconda Command Prompt, go to where the file is downloaded and type: pip install filename.whl

For directions on how to use it read here: https://mypyc.readthedocs.io/en/latest/getting_started.html

Note compiling is done from the command prompt, not in Python. You should probably check out Pythran it's a more actively developed Python to native CPython module compiler, and it's pretty easy to use.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matt