Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't install pymesh
#1
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 !
Reply
#2
There is a mix up 32-bit/64-bit. Are you using 32-bit Python? 64-bit library?
Reply
#3
use pip: pip install pymesh
Reply
#4
(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.
Reply
#5
As Larz60+ suggested, use pip. It will install libraries compatible with your python
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  can not install pymesh in ubuntu jerry 2 2,366 Mar-23-2022, 02:04 AM
Last Post: jerry

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020