Python ds import math module

I am trying to get the python code I wrote earlier on Windows to work with my DS. I am using ( DSPython ), and when I tried to import the math, it happened with "ImportError: No module named math". I got most of the other modules I need in order not to rely on working with math. But math is usually a built-in module, so I can’t just find math.py on my PC and copy it. Any suggestions on where I can find an alternative to the built-in math module that can still perform the same functions?

+3
source share
2 answers

Last month, dspython was given a complete cleanup of the project, and several issues were addressed in this process, including the one you mention ..

If you are still interested in running this Python code in your DS, this is the right time to try again. The contributor also wrote some small sample programs that are good starting points for you β€” they can also give you an idea of ​​what has been implemented so far.

+1
source

It would be best to wrap the NDS library with pyrex and create your own math module. The rest of dspython is there.

0
source

Source: https://habr.com/ru/post/1728720/


All Articles