Remember that anything installed via pip that was compiled, like numpy, was compiled for a *specific version of Python*; and it wasn’t the version of Python in Maya. Not even for Maya 2022.
Instead, you’d get the version coming off of PyPI, which is where pip gets its packages. Those have all been built for the vanilla Python off of python.org. So you should expect those libraries to either refuse to load outright (if you’re lucky), or to load and believe it got loaded into vanilla Python when really it’s Maya’s custom build. The result is either crashes, memory faults or worse; silent errors. Random errors that occur from bad memory being accessed but not always invalid. The kind that are next to impossible to debug. If you do want numpy and other compiled things in Maya without worrying about that, if compile it *for* Maya (mayapy). There are semi-exceptions though; I used to use PyQt4 off of PyPI for Maya 2014-2015 for years without issue. Odds are the parts of Python used by that compiled library was identical across mayapy and python.org. But there’s no way (?) to know up-front! For anything that *isn’t* compiled however - like six or black - this isn’t an issue and all of PyPI is at Maya’s disposal. If you’d rather not take my word for it, Google about it or search this mailing list; it’s a topic that’s been rehashed a number of times over the years. Stay safe! On Wed, 31 Mar 2021 at 01:45, Jakob Kousholt <jako...@gmail.com> wrote: > Hey Todd, > > > (This will be for maya 2020, and on windows. Let me know if your system is > different) > > So to install pip in in maya you have to download the get-pip.py script > from here: > https://bootstrap.pypa.io/pip/2.7/get-pip.py > > > The easiest way is to place that in your maya bin directory (Usually > located at C:\Program Files\Autodesk\Maya2020\bin). > Then cd into that directory within a terminal and run the following > command: > > mayapy.exe get-pip.py > > After that, you are now able to use pip to install any back you want using > this command: > (from your bin directory) > > mayapy -m pip install <Insert the name of the package you want pip to > install> > > > One thing to note is that you don't have to install pip if you have maya > 2022, as that ships with Python 3, which already contains pip! > > Let me know if I need to clarify anything. Good luck! > > > On Tue, 30 Mar 2021 at 19:32, Todd Widup <todd.wi...@gmail.com> wrote: > >> what is the easiest way of getting them running correctly inside of >> Maya? or even Pip for that matter? >> >> thanks >> -todd >> >> -- >> Todd Widup >> Creature TD / Technical Artist >> todd.wi...@gmail.com >> >> -- >> 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 python_inside_maya+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CABBPk35j9gYLByhpBFnho6KXVUhhqO5EKmDuFG1TNSad2U8xgQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk35j9gYLByhpBFnho6KXVUhhqO5EKmDuFG1TNSad2U8xgQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAEKd6baABS9nY9jUodRxfe6svWSQR6xWERCOe%3DEWk5ir8CSzMQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAEKd6baABS9nY9jUodRxfe6svWSQR6xWERCOe%3DEWk5ir8CSzMQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCLTGyCvixYYsKH1cXkXMGSg2iyGWgug%3D96e5wWS1dRfQ%40mail.gmail.com.