Python Forum
Can't install pymesh - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Can't install pymesh (/thread-26071.html)



Can't install pymesh - FBU - Apr-20-2020

Hi everybody,
I'm trying to install the library Pymesh (https://pymesh.readthedocs.io/en/latest/installation.html#building-pymesh).
Everything went OK until the building step.

The command I tried :

.\Git\PyMesh>python setup.py build

The answer I get :

"running build
error: [WinError 193] %1 n’est pas une application Win32 valide" (in English : %1 is not an available Win32 application)

I tried to reinstall setuptools, but it was already correctly installed :
"pip install setuptools
Requirement already satisfied: setuptools in c:\users\francois.boureau.1\appdata\local\programs\python\python37-32\lib\site-packages (40.8.0)"

How can I solve the problem ?

Here is my path variable :

PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Common Files\Graitec\;C:\Program Files (x86)\Common Files\Graitec\;C:\Users\francois.boureau.1\AppData\Local\Programs\Python\Python37-32;C:\Users\francois.boureau.1\AppData\Local\Programs\Python\Python37-32\Scripts;C:\Users\root\AppData\Local\Microsoft\WindowsApps

Thank you for your help !


RE: Can't install pymesh - anbu23 - Apr-25-2020

There is a mix up 32-bit/64-bit. Are you using 32-bit Python? 64-bit library?


RE: Can't install pymesh - Larz60+ - Apr-25-2020

use pip: pip install pymesh


RE: Can't install pymesh - FBU - Apr-27-2020

(Apr-25-2020, 01:34 PM)anbu23 Wrote: There is a mix up 32-bit/64-bit. Are you using 32-bit Python? 64-bit library?

As a matter of fact, I am using 32bit Python. I'll try to install Pymesh with 64bit Python.
In the meantime, I found another library to create meshes, which is much more simple to install : Meshpy ; and it works !
But on a daily basis what sould I do : using 32bit or 64bit Python ? Are all libraries compatible whith 64bit Python ?
Thank you very much for pointing out the mix up.


RE: Can't install pymesh - anbu23 - Apr-27-2020

As Larz60+ suggested, use pip. It will install libraries compatible with your python