yes, that's the pip install that worked.  same with scipy

El lunes, 15 de junio de 2020, 11:55:36 (UTC-7), Marcus Ottosson escribió:
>
> I'm glad it works, but that's not what I meant. xD 
>
> I had a closer look at the link, and assume you're referring to that last 
> post?
>
> ```py
> pip install -i https://pypi.anaconda.org/carlkl/simple numpy
> ```
>
> That still isn't the right way to do it, as it would fetch a build of 
> NumPy built for the official Python, whereas what you need is a build 
> *specifically for your version of Maya*. I don't know how to express this 
> any clearer, haha. What I expect you'll find with that version is that it 
> *may* work some of the time, and other times you'll experience intermittent 
> crashes and segmentation faults, due to calling on a compiled library built 
> for a different runtime. I'm having trouble drawing a parallel to anything 
> else for more clarity, perhaps someone else can help me out?
>
> I had to experience this first-hand before it made any sense to me, so 
> odds are you are in for the same ride. Just don't put it in production or 
> release any software with it, haha. Think of the children.
>
> On Mon, 15 Jun 2020 at 19:23, Rudi Hammad <rudih...@gmail.com 
> <javascript:>> wrote:
>
>> yes! it works!
>> thanks marcus, I just pip installed what was said in that link and it 
>> just work. awesome, you saved me a lot of frustration.
>>
>> El lunes, 15 de junio de 2020, 10:10:36 (UTC-7), Rudi Hammad escribió:
>>>
>>> Numexpr uses numpy at somepoint, but you' re right, they don't anything 
>>> regarding numpy.
>>> I didn't saw that link, I am going to give a try, thx.
>>>
>>> El lunes, 15 de junio de 2020, 1:31:36 (UTC-7), Marcus Ottosson escribió:
>>>>
>>>> From what I gather, numexpr and pyhook are other Python libraries?
>>>>
>>>> - https://github.com/pydata/numexpr
>>>> - https://pypi.org/project/pyHook/
>>>>
>>>> They won't help you get NumPy installed if that's what you're thinking. 
>>>> I think the reference you found was maybe this?
>>>>
>>>> - 
>>>> https://forums.autodesk.com/t5/maya-programming/guide-how-to-install-numpy-scipy-in-maya-windows-64-bit/td-p/5796722
>>>>
>>>> If so, that's from 5 years ago and it's likely the contents of that 
>>>> folder has changed since then.
>>>>
>>>> On Mon, 15 Jun 2020 at 08:43, Rudi Hammad <rudih...@gmail.com> wrote:
>>>>
>>>>> I see, thanks for the explanation.
>>>>> The error is coming having installed the 64 bits vanilla version that 
>>>>> deke suggested,
>>>>> I found this link and it seems to work for people who tried it: 
>>>>> https://drive.google.com/drive/folders/0BwsYd1k8t0lEMjBCa2N1Z25KZXc
>>>>> but I didn't it didn't for me. Not sure what I am doing 
>>>>> wrong.Actually, I don't really understand what pyHook and numexpr are 
>>>>> supposed to be doing, so there must be some bit of information that I 
>>>>> didn't quite get.
>>>>> So I'll just write my math libraries using python's default for now 
>>>>> and maybe refactor in the future if I manage to make it work. 
>>>>>
>>>>> El domingo, 14 de junio de 2020, 23:54:44 (UTC-7), Marcus Ottosson 
>>>>> escribió:
>>>>>>
>>>>>> 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 <rudih...@gmail.com> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>>>>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/python_inside_maya/9ad4f036-8455-4e0d-9fc1-fcb13f0e635fo%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/9ad4f036-8455-4e0d-9fc1-fcb13f0e635fo%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 python_inside_maya+unsubscr...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/075e4f58-8494-4dc3-afa6-93b45b0fc856o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/075e4f58-8494-4dc3-afa6-93b45b0fc856o%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/809958d8-f9dc-412a-b6dc-ad5c5c4167fbo%40googlegroups.com.

Reply via email to