PyMesh / PyMesh

Geometry Processing Library for Python
1.88k stars 358 forks source link

Error installing PyMesh #141

Open raghavgurbaxani opened 5 years ago

raghavgurbaxani commented 5 years ago

Hi

While installing Pymesh after running python setup.py install -

Installed /home/raghav/anaconda3/envs/keras/lib/python2.7/site-packages/pymesh2-0.2.1-py2.7-linux-x86_64.egg Processing dependencies for pymesh2==0.2.1 Finished processing dependencies for pymesh2==0.2.1

However, when I check for installation $ python

import pymesh Traceback (most recent call last): File "", line 1, in File "/home/raghav/.local/lib/python2.7/site-packages/pymesh2-0.2.1-py2.7-linux-x86_64.egg/pymesh/init.py", line 18, in from .Mesh import Mesh File "/home/raghav/.local/lib/python2.7/site-packages/pymesh2-0.2.1-py2.7-linux-x86_64.egg/pymesh/Mesh.py", line 5, in import PyMesh ImportError: No module named PyMesh

Any suggestions ?

sunnyyum commented 5 years ago

same problem here

ijinjay commented 5 years ago

Set the proper path with cmake.

In my case, I use pyenv to manage python versions.

So I run following commands to build the project:

cd $PYMESH_PATH
mkdir build
cd build
cmake -DPYTHON_LIBRARY=/Users/user/.pyenv/versions/anaconda3-5.2.0/lib/libpython3.6m.dylib -DPYTHON_INCLUDE_DIR=/Users/user/.pyenv/versions/anaconda3-5.2.0/include/python3.6m -DPYTHON_EXECUTABLE:FILEPATH=/Users/user/.pyenv/versions/anaconda3-5.2.0/bin/python ..
make -j
cd ..
python setup.py install

FYI 😃 ☕️

AAcquier commented 5 years ago

Has this been fixed because I have got exactly the same error message that @raghavgurbaxani

louzq16 commented 4 years ago

@ijinjay ,useful advice. My similar problem has been solved by this way. Thanks!!

SimonSolar2C commented 4 years ago

Does this work in a 'standard' ubuntu python3 environment without using anaconda?

eyildiz-ugoe commented 2 years ago

I have the same problem on Ubuntu 20.04 and Python 3.8. It's kinda unbelievable that the installation of this package is such a headache. Why not simply introduce a pip package for this? I ended up removing the Pymesh, it took more than 1 hour and that was it for me.