Python Forum

Full Version: Can't install pymesh
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody,
I'm trying to install the library Pymesh (https://pymesh.readthedocs.io/en/latest/...ing-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 !
There is a mix up 32-bit/64-bit. Are you using 32-bit Python? 64-bit library?
use pip: pip install pymesh
(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.
As Larz60+ suggested, use pip. It will install libraries compatible with your python