There are at least two problems. - First, remember that the official Python != Maya's Python. The version of NumPy you've got is built for the official Python, and you need one for Maya's Python. How can you get that? The interwebs could lead you to a copy someone has built, or you can build it yourself using `mayapy` in place of `python`. - Second, if you *were* going to use the official Python version (which probably won't work), make sure it's 64-bit like Deke said. It must match your Maya version. My guess is that's where your DLL error comes from. But again, official Python != Maya's Python.
The reason PyCharm works is because PyCharm == official Python, so everything is well. Anytime you're dealing with compiled modules, like NumPy, and want to use them in Maya, you'll need them compiled for Maya's Python. On Mon, 15 Jun 2020 at 03:09, Rudi Hammad <[email protected]> wrote: > By the way, everything is fine in pycharm if I set the interpreter as > C:\Python27\python.exe > So numpy is not boken. It is mayapy that is not happy with numpy > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD6qhzC8%2BGD_7mxa3B%3D%2BYFcfTexNFwER4mLfZnDi0p6AQ%40mail.gmail.com.
